synchronized_models 1.0.0alpha → 1.0.1alpha
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97b86bc4d6a7eacd3e1c771c71d5042f4b887d112a09f88b6374bbacaae0273c
|
4
|
+
data.tar.gz: bcf2eab8a352e02c939957646ec990f4a75d35224aaaea9effa5b127938d6d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 528b3348055586a4a74c50cb2d7cb21c4ad47be9c02c5b906682428e022c19794253c88aa597615e6a1a420d408bc521caaec0df0b33fdaa7d5792861e238e19
|
7
|
+
data.tar.gz: c16685c9c9676ee883e6604bedaf96597ae487c052346c1c66d61a4182e2567a0cf44df9bab0a3998c5d6e480b57cfd34b8f5656f16743b83b00379064cd465b
|
@@ -60,7 +60,7 @@ module Kernel
|
|
60
60
|
# => *
|
61
61
|
def initialize_sync_constant(model_name)
|
62
62
|
const_set(
|
63
|
-
"Remote#{model_name.to_s.
|
63
|
+
"Remote#{model_name.to_s.camelcase}",
|
64
64
|
Class.new(ActiveRecord::Base)
|
65
65
|
)
|
66
66
|
|
@@ -69,7 +69,7 @@ module Kernel
|
|
69
69
|
|
70
70
|
# => *
|
71
71
|
def synchronized_constant(model_name)
|
72
|
-
"#{name}::Remote#{model_name.to_s.
|
72
|
+
"#{name}::Remote#{model_name.to_s.camelcase}".constantize
|
73
73
|
end
|
74
74
|
|
75
75
|
# => *
|