fields-serializer 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fields/serializer/active_record.rb +1 -1
- data/lib/fields/serializer/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: 2027e1842ef0e2c4f7f6ca2d2714536e787660bb
|
4
|
+
data.tar.gz: a0ead9cab3ec04a44d4f67b22787b75faed0c7f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aff65e7bde302e97218ee1526685b1eb99abe98a8bf3f0c8bdb89f47a971f615702677c73012b675cb2377d2e0fd3973aec5835fee0f1ca1c5c082fe7a4a6d9
|
7
|
+
data.tar.gz: 2b2919c65d2619f147cdd42739027f700dd1b9e27aa4fe348145f7cd1df982d78c83dfd553e21647ad9fcf292e3a31f54b51aca6f014d49dd2cb96a20632068c
|
@@ -32,7 +32,7 @@ module Fields
|
|
32
32
|
Class.new(ActiveModel::Serializer) do
|
33
33
|
Array(fields).each do |field|
|
34
34
|
if field.kind_of?(Hash)
|
35
|
-
klass.nested_association
|
35
|
+
klass.send(:nested_association, field)
|
36
36
|
else
|
37
37
|
attribute field.to_sym unless klass.association?(field)
|
38
38
|
end
|