fields-serializer 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce61523be03a0cc30c6780f9a5c4c8da5d2a95ff
4
- data.tar.gz: 709237b398c85eaf48d2257613fd70ec1e21e858
3
+ metadata.gz: b52fd79f8a8bd124a72946938fa34252598ad9d7
4
+ data.tar.gz: 89440400a40a8200d66f12e58ffefa0ba598514b
5
5
  SHA512:
6
- metadata.gz: c2e4d0992900760c71eade0df25099e2489a8ac6d9b383e1976ffc24b0ab426824f81d0abe37dc3ac44bd2b80386a540b7ef77b7df415b2388d14a6add3811ab
7
- data.tar.gz: fa80b323bf92924c588ce9f0a6b8e68e6248a183ed50f4035124b9fa65c3620725b625cd3d50fcc984bf9411af913bdb302f47a703a31de22aa64478b46b959c
6
+ metadata.gz: 58ae8f9acd7b8697c680c12a705691c813c2b1efe389f320fd715a802133b4781f4835578ea044d75047ee613b2b1f6c4cf59cdd39598274d87109d1ced2291b
7
+ data.tar.gz: '08c15eacdbde795f63929b9dbc87e9368286fd99d192af066bd03421a59f9a0212c845ef4ed427ba689e85551b13dc8fc1ebd9440fb42e781d1d731f3ed47e30'
@@ -25,6 +25,7 @@ class FieldSerializer < ActiveModel::Serializer
25
25
  end
26
26
 
27
27
  def create_attribute_structure(attribute_stack, model)
28
+ return unless model
28
29
  parent = attribute_stack.shift
29
30
  if attribute_stack.count > 0
30
31
  nested_model = model.send(parent)
@@ -1,5 +1,5 @@
1
1
  module Fields
2
2
  module Serializer
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery