Commit 8715ef622b1e8d1cb3bf257f0f265d4836291ea9

Authored by Andrew
1 parent 641c2670

Fixed with_highlights method

Showing 2 changed files with 2 additions and 1 deletions   Show diff stats
@@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
5 - Added `case_sensitive` option 5 - Added `case_sensitive` option
6 - Added `stem` option 6 - Added `stem` option
7 - Added `total_entries` option 7 - Added `total_entries` option
  8 +- Fixed `with_highlights` method
8 9
9 ## 3.1.0 10 ## 3.1.0
10 11
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