Skip to content

Commit

Permalink
Merge 5c4cae9 into 7754e3e
Browse files Browse the repository at this point in the history
  • Loading branch information
armando1339 committed Jul 24, 2019
2 parents 7754e3e + 5c4cae9 commit c6eadae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ spec/dummy/tmp/
spec/dummy/config/application.yml
/coverage.data
/coverage/
coverage/
.DS_Store
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
synchronized_models (1.0.0alpha)
synchronized_models (1.0.1alpha)
mysql2
pg
rails (~> 5.2.3)
Expand Down
4 changes: 2 additions & 2 deletions lib/synchronized_models/kernel_synchronizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def configure_sync_constant(args={})
# => *
def initialize_sync_constant(model_name)
const_set(
"Remote#{model_name.to_s.capitalize}",
"Remote#{model_name.to_s.camelcase}",
Class.new(ActiveRecord::Base)
)

Expand All @@ -69,7 +69,7 @@ def initialize_sync_constant(model_name)

# => *
def synchronized_constant(model_name)
"#{name}::Remote#{model_name.to_s.capitalize}".constantize
"#{name}::Remote#{model_name.to_s.camelcase}".constantize
end

# => *
Expand Down
2 changes: 1 addition & 1 deletion lib/synchronized_models/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SynchronizedModels
VERSION = '1.0.0alpha'
VERSION = '1.0.1alpha'
end

0 comments on commit c6eadae

Please sign in to comment.