Commit 8715ef622b1e8d1cb3bf257f0f265d4836291ea9
1 parent
641c2670
Exists in
master
and in
18 other branches
Fixed with_highlights method
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
CHANGELOG.md
lib/searchkick/results.rb
@@ -195,7 +195,7 @@ module Searchkick | @@ -195,7 +195,7 @@ module Searchkick | ||
195 | end | 195 | end |
196 | 196 | ||
197 | def with_highlights(multiple: false) | 197 | def with_highlights(multiple: false) |
198 | - with_hit do |result, hit| | 198 | + with_hit.map do |result, hit| |
199 | [result, hit_highlights(hit, multiple: multiple)] | 199 | [result, hit_highlights(hit, multiple: multiple)] |
200 | end | 200 | end |
201 | end | 201 | end |