From ad2ee51b26970359ea57076b0449c241884a25c9 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 10 Sep 2016 22:13:52 -0700 Subject: [PATCH] Added more methods for lazy searching --- lib/searchkick/query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/searchkick/query.rb b/lib/searchkick/query.rb index f1e02bc..a1e1397 100644 --- a/lib/searchkick/query.rb +++ b/lib/searchkick/query.rb @@ -10,7 +10,7 @@ module Searchkick :took, :error, :model_name, :entry_name, :total_count, :total_entries, :current_page, :per_page, :limit_value, :padding, :total_pages, :num_pages, :offset_value, :offset, :previous_page, :prev_page, :next_page, :first_page?, :last_page?, - :out_of_range?, :hits, :response + :out_of_range?, :hits, :response, :to_a, :first def initialize(klass, term, options = {}) if term.is_a?(Hash) -- libgit2 0.21.0