From 0eb71498f6aabd137c6aacd983ad40fea8efbea5 Mon Sep 17 00:00:00 2001 From: Yoji Shidara Date: Thu, 5 Dec 2013 16:59:19 +0900 Subject: [PATCH] Rename have_records? to has_records? --- lib/droonga/plugin/distributor/distributed_search_plan.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/droonga/plugin/distributor/distributed_search_plan.rb b/lib/droonga/plugin/distributor/distributed_search_plan.rb index 871da1d..f0d21b5 100644 --- a/lib/droonga/plugin/distributor/distributed_search_plan.rb +++ b/lib/droonga/plugin/distributor/distributed_search_plan.rb @@ -148,7 +148,7 @@ def calculate_offset_and_limit! end output_offset = @output["offset"] || 0 - @output["offset"] = 0 if have_records? + @output["offset"] = 0 if has_records? final_offset = sort_offset + output_offset @@ -186,7 +186,7 @@ def calculate_offset_and_limit! @records_limit = final_limit end - def have_records? + def has_records? @output["elements"].include?("records") end