slim_form_object 3.3.2 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slim_form_object/assign.rb +3 -3
- data/lib/slim_form_object/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1169e7dcf359595abb4f60e3c7f915936e547530b31b557750443c823efa1501
|
4
|
+
data.tar.gz: '09fe5c3e7c2fa09bbbe186d24ff686ed045b3a436f611363ae35bc6ac35cbafe'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0781e5140217065b6122d35bb188dd149613a4312481c37c7e50a2da2e302c0401b54752faa488621e9b41dc1dd3a6b5a0d43a7b7943c4cf7dfe2b290972ea81'
|
7
|
+
data.tar.gz: 799d39aab29f6b90b8513d84a214074a341d7f201c7adef305bcc8e9efa71d5f49a0d6f817599326751f09f86c8f7d2e8ec78c30bd79711892bc50b4acba69f4
|
@@ -47,10 +47,10 @@ module SlimFormObject
|
|
47
47
|
|
48
48
|
value_params.each do |key, value|
|
49
49
|
if is_nested?(value)
|
50
|
-
if
|
51
|
-
value.values.each { |hash_params| nested << make_hash_objects_and_nested_objects(key, hash_params) }
|
52
|
-
elsif value.is_a?(Array)
|
50
|
+
if value.is_a?(Array)
|
53
51
|
value.each { |hash_params| nested << make_hash_objects_and_nested_objects(key, hash_params) }
|
52
|
+
elsif nested_as_hash?(value)
|
53
|
+
value.values.each { |hash_params| nested << make_hash_objects_and_nested_objects(key, hash_params) }
|
54
54
|
else
|
55
55
|
nested << make_hash_objects_and_nested_objects(key, value)
|
56
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slim_form_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerzh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|