From c0386b55b1aa5af8509960f1b7d415339d4c4c9e Mon Sep 17 00:00:00 2001 From: Dieter Lunn Date: Thu, 23 May 2024 17:45:18 -0500 Subject: [PATCH] Use block for each_result in multi_search --- lib/meilisearch/rails/multi_search/result.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/meilisearch/rails/multi_search/result.rb b/lib/meilisearch/rails/multi_search/result.rb index 593856ab..e7938fcc 100644 --- a/lib/meilisearch/rails/multi_search/result.rb +++ b/lib/meilisearch/rails/multi_search/result.rb @@ -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