Skip to content

Commit

Permalink
Merge #360
Browse files Browse the repository at this point in the history
360: fix: use block for each_result in multi_search r=ellnix a=coder2000

Fix the each_result method for multi search requests to pass a block to the each method.

Co-authored-by: Dieter Lunn <coder2000@gmail.com>
  • Loading branch information
meili-bors[bot] and coder2000 authored May 24, 2024
2 parents 62762b6 + c0386b5 commit 1032187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/meilisearch/rails/multi_search/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def each_hit(&block)
end
alias each each_hit

def each_result
@results.each
def each_result(&block)
@results.each(&block)
end

def to_a
Expand Down

0 comments on commit 1032187

Please sign in to comment.