fields-serializer 0.8.2 → 0.8.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: 2f80be5e786d1501f5a9e0ba38d57ad04c7ddb09
4
- data.tar.gz: 2e602a2c435ff85ba2c7f42dbc665e3a2676ecc5
3
+ metadata.gz: 24b17d02a79c6444ee2aa04346e86ed6b41c480c
4
+ data.tar.gz: 03a5b6d77c7234c56d8ab16e9b1673a11dbf51ac
5
5
  SHA512:
6
- metadata.gz: 7ee25ff226d3e11803fc0f824c97b4d25b277fe355ad8ce6b5645f6b1eac1e1a28dacd566435a8ac3d5cd868bac1d21b53077c83be749247ac5cee071077e20e
7
- data.tar.gz: bd57aed56ed96dca607780cc55f2dd860895bf1a070a651100d6b0597b6f25dc3c6e0b039448f240e023ceb045c21992a804b8bc3301f8cbb164d783e3190ebe
6
+ metadata.gz: 984cbf4bb275806d58553f3eb956b547d09667a04aaaeb040eebcf67c65681648dd00b28c0a02f0c35998359646309fa7500d53c23548289b3a2d80f5652a50f
7
+ data.tar.gz: 1e30b68575f833b6ac9ff2b280216b1b51e57a13a8924c81b04ce0020472001d9f29bb50a901ca9a5c8bb92078b872028dc007848d8899b094ae723bd82225f3
@@ -29,6 +29,7 @@ module Fields
29
29
  def deep_errors(*association_keys)
30
30
  association_keys.inject(errors.to_h) do |error_tree, association_key|
31
31
  associate = send(association_key)
32
+ next(error_tree) unless associate
32
33
  associate = associate.to_a if self.class.reflections[association_key.to_s].collection?
33
34
  error_tree.merge!(association_key => __associate_errors(associate))
34
35
  end
@@ -1,5 +1,5 @@
1
1
  module Fields
2
2
  module Serializer
3
- VERSION = "0.8.2"
3
+ VERSION = "0.8.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.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-03-20 00:00:00.000000000 Z
13
+ date: 2018-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler