[Groonga-commit] droonga/fluent-plugin-droonga at c18f291 [master] Rename has_records? to have_records?

Back to archive index

Yoji Shidara null+****@clear*****
Fri Dec 6 16:37:27 JST 2013


Yoji Shidara	2013-12-06 16:37:27 +0900 (Fri, 06 Dec 2013)

  New Revision: c18f29126d67508d8a29a764623c5647aff231d0
  https://github.com/droonga/fluent-plugin-droonga/commit/c18f29126d67508d8a29a764623c5647aff231d0

  Message:
    Rename has_records? to have_records?
    
    According to standard Ruby naming convention, `have_records?`
    is suitable for this method.
    
    This commit reverts 0eb71498f6aabd137c6aacd983ad40fea8efbea5.

  Modified files:
    lib/droonga/plugin/distributor/distributed_search_plan.rb

  Modified: lib/droonga/plugin/distributor/distributed_search_plan.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/distributor/distributed_search_plan.rb    2013-12-06 11:05:15 +0900 (6d1bf22)
+++ lib/droonga/plugin/distributor/distributed_search_plan.rb    2013-12-06 16:37:27 +0900 (9af0870)
@@ -202,7 +202,7 @@ module Droonga
       end
 
       def calculate_output_offset!
-        @output["offset"] = 0 if has_records?
+        @output["offset"] = 0 if have_records?
       end
 
       def final_offset
@@ -223,7 +223,7 @@ module Droonga
         end
       end
 
-      def has_records?
+      def have_records?
         @output["elements"].include?("records")
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index