Commit ad2ee51b26970359ea57076b0449c241884a25c9

Authored by Andrew Kane
1 parent 00e01a07

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 10 :took, :error, :model_name, :entry_name, :total_count, :total_entries,
11 11 :current_page, :per_page, :limit_value, :padding, :total_pages, :num_pages,
12 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 15 def initialize(klass, term, options = {})
16 16 if term.is_a?(Hash)
... ...