Sha256: 180c647f08ce5a1071a8c1f4b130ae69dc787c12da924590f59032e4c2e0222f

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

module Groonga
  class Client
    module Rails
      class TestSynchronizer
        def sync(options={})
          ::Rails.application.eager_load!
          ObjectSpace.each_object(Class) do |klass|
            if klass < Searcher
              klass.sync_schema
              klass.sync_records if options[:sync_records]
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
groonga-client-rails-0.9.7 lib/groonga/client/rails/test_synchronizer.rb
groonga-client-rails-0.9.6 lib/groonga/client/rails/test_synchronizer.rb
groonga-client-rails-0.9.5 lib/groonga/client/rails/test_synchronizer.rb