From 6cfa3a48caac25457350df9892a2ac644d07cf9f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 10 Nov 2014 01:51:46 -0800 Subject: [PATCH] No reason for hits to be protected --- lib/searchkick/results.rb | 2 -- test/sql_test.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/searchkick/results.rb b/lib/searchkick/results.rb index 4f6c495..d661377 100644 --- a/lib/searchkick/results.rb +++ b/lib/searchkick/results.rb @@ -127,8 +127,6 @@ module Searchkick next_page.nil? end - protected - def hits @response["hits"]["hits"] end diff --git a/test/sql_test.rb b/test/sql_test.rb index 17c5bac..b0e2645 100644 --- a/test/sql_test.rb +++ b/test/sql_test.rb @@ -300,7 +300,7 @@ class TestSql < Minitest::Test def test_select_all store [{name: "Product A", user_ids: [1, 2]}] - hit = Product.search("product", select: true).send(:hits).first + hit = Product.search("product", select: true).hits.first assert_equal hit["_source"]["name"], "Product A" assert_equal hit["_source"]["user_ids"], [1, 2] end -- libgit2 0.21.0