Skip to content

Commit 1032187

Browse files
Merge #360
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 <[email protected]>
2 parents 62762b6 + c0386b5 commit 1032187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/meilisearch/rails/multi_search/result.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def each_hit(&block)
3030
end
3131
alias each each_hit
3232

33-
def each_result
34-
@results.each
33+
def each_result(&block)
34+
@results.each(&block)
3535
end
3636

3737
def to_a

0 commit comments

Comments
 (0)