Commit ad2ee51b26970359ea57076b0449c241884a25c9
1 parent
00e01a07
Exists in
master
and in
21 other branches
Added more methods for lazy searching
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/query.rb
@@ -10,7 +10,7 @@ module Searchkick | @@ -10,7 +10,7 @@ module Searchkick | ||
10 | :took, :error, :model_name, :entry_name, :total_count, :total_entries, | 10 | :took, :error, :model_name, :entry_name, :total_count, :total_entries, |
11 | :current_page, :per_page, :limit_value, :padding, :total_pages, :num_pages, | 11 | :current_page, :per_page, :limit_value, :padding, :total_pages, :num_pages, |
12 | :offset_value, :offset, :previous_page, :prev_page, :next_page, :first_page?, :last_page?, | 12 | :offset_value, :offset, :previous_page, :prev_page, :next_page, :first_page?, :last_page?, |
13 | - :out_of_range?, :hits, :response | 13 | + :out_of_range?, :hits, :response, :to_a, :first |
14 | 14 | ||
15 | def initialize(klass, term, options = {}) | 15 | def initialize(klass, term, options = {}) |
16 | if term.is_a?(Hash) | 16 | if term.is_a?(Hash) |