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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 443eca2a66daab0162582536e8326a7d5b7b3c97
4
- data.tar.gz: 81f71c018cc3c5f07a4937a59db442ad53822996
3
+ metadata.gz: 2027e1842ef0e2c4f7f6ca2d2714536e787660bb
4
+ data.tar.gz: a0ead9cab3ec04a44d4f67b22787b75faed0c7f5
5
5
  SHA512:
6
- metadata.gz: 20b507a9cb95489b542cef6603e328749e85e415af3ba36fd85836810061cec9e21443a88627399ecc1f9c3676078a9721d6931da0fd4ab0d1b5808feca422a8
7
- data.tar.gz: 9a2f3c2dd43ca801ee951012a455fa441c2d3d3b615fa64d1c0e270f9795cface7a96a95ee067255ee6d094319e8c17cd2ed5613f2e9b4b1f2424c05eefcc4f9
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(field)
35
+ klass.send(:nested_association, field)
36
36
  else
37
37
  attribute field.to_sym unless klass.association?(field)
38
38
  end
@@ -1,5 +1,5 @@
1
1
  module Fields
2
2
  module Serializer
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fields-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery