[Groonga-commit] ranguba/groonga-client-rails at b1fa5a4 [master] Export sync_schema and sync_records

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 22 19:09:01 JST 2016


Kouhei Sutou	2016-03-22 19:09:01 +0900 (Tue, 22 Mar 2016)

  New Revision: b1fa5a43525e24ba6718651c58531c7ef669f91b
  https://github.com/ranguba/groonga-client-rails/commit/b1fa5a43525e24ba6718651c58531c7ef669f91b

  Message:
    Export sync_schema and sync_records

  Modified files:
    lib/groonga/client/searcher.rb

  Modified: lib/groonga/client/searcher.rb (+9 -9)
===================================================================
--- lib/groonga/client/searcher.rb    2016-03-22 18:51:24 +0900 (490b2be)
+++ lib/groonga/client/searcher.rb    2016-03-22 19:09:01 +0900 (cc19981)
@@ -57,15 +57,6 @@ module Groonga
           sync_records
         end
 
-        private
-        def sources
-          @sources ||= {}
-        end
-
-        def default_table_name
-          name.gsub(/Searcher\z/, "").tableize
-        end
-
         def sync_schema
           current_schema = Client.open do |client|
             client.schema
@@ -90,6 +81,15 @@ module Groonga
           end
         end
 
+        private
+        def sources
+          @sources ||= {}
+        end
+
+        def default_table_name
+          name.gsub(/Searcher\z/, "").tableize
+        end
+
         def ensure_model_classes_loaded
           ::Rails.application.eager_load!
         end
-------------- next part --------------
HTML����������������������������...
Download 



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