castle-rb 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/castle-rb/models/authentication.rb +1 -1
- data/lib/castle-rb/models/model.rb +8 -8
- data/lib/castle-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9506fef7cbf7d53b94f37be777bb74f8f9ca53c6
|
4
|
+
data.tar.gz: bf734c73701e5f80f283d39f98f743f5d66260ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653e9fc67813f8606ad4c8c278336931cb103e16d117d62b103f9b20cebdc4ec0f7834689e44e994e7992a826e5233cb3c7548db9c3053ac0bf40935165b8981
|
7
|
+
data.tar.gz: 472d9167a99b92b57a525bedf1d72c22871f8fa7cb3848a66c26c07c8b476b47e4dca710ea19b509507e8b95357e36c3101c2b9467b73c9eda66248ca507949d
|
@@ -19,14 +19,14 @@ module Castle
|
|
19
19
|
end
|
20
20
|
|
21
21
|
# Transform model.user.id to model.user_id to allow calls on nested models
|
22
|
-
def attributes
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
22
|
+
# def attributes
|
23
|
+
# attrs = super
|
24
|
+
# if attrs['user'] && attrs['user']['id']
|
25
|
+
# attrs.merge!('user_id' => attrs['user']['id'])
|
26
|
+
# attrs.delete 'user'
|
27
|
+
# end
|
28
|
+
# attrs
|
29
|
+
# end
|
30
30
|
|
31
31
|
METHODS.each do |method|
|
32
32
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
data/lib/castle-rb/version.rb
CHANGED