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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b17d02a79c6444ee2aa04346e86ed6b41c480c
|
4
|
+
data.tar.gz: 03a5b6d77c7234c56d8ab16e9b1673a11dbf51ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
13
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|