Skip to content

Commit

Permalink
Export sync_schema and sync_records
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 22, 2016
1 parent 0bfc708 commit b1fa5a4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/groonga/client/searcher.rb
Expand Up @@ -57,15 +57,6 @@ def sync
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
Expand All @@ -90,6 +81,15 @@ def sync_records
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
Expand Down

0 comments on commit b1fa5a4

Please sign in to comment.