Commit fb9d24ae1734a9779bdc4f4049f76d7b18a9a8d9
1 parent
63cf1947
Exists in
master
and in
18 other branches
Fixed debug for Mongoid
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/query.rb
... | ... | @@ -135,7 +135,7 @@ module Searchkick |
135 | 135 | if searchkick_index |
136 | 136 | puts "Model Search Data" |
137 | 137 | begin |
138 | - pp klass.first(3).map { |r| RecordData.new(searchkick_index, r).index_data } | |
138 | + pp klass.limit(3).map { |r| RecordData.new(searchkick_index, r).index_data } | |
139 | 139 | rescue => e |
140 | 140 | puts "#{e.class.name}: #{e.message}" |
141 | 141 | end | ... | ... |