slim_form_object 3.3.9 → 3.3.10
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/saver.rb +3 -4
- 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: 06b26771870efd16c68abf63cfb90816df5670725dd0d9645a19ba26b2a3b211
|
4
|
+
data.tar.gz: 821b09ff19d512bb520a6fb79afc1e2417bfc40377c21015c441d46c0e7de3f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3c22063e79755223e46b742b85f97ef76d101e38937fc97e09e1a0cf59a8a15049672fb27694922156b896381c3faa6531fa97b3eea767a9ca77029be09406
|
7
|
+
data.tar.gz: 98bf0b3aa2ffef8636b96a3d361cfbfd0a617fb4cfcf81c26352b928082dde872812d7d4ed56d2c221853cb4a0a0331a4f142f723b7ee4e3fd549a5321266e67
|
@@ -12,10 +12,7 @@ module SlimFormObject
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def save
|
15
|
-
if form_object.valid?
|
16
|
-
_save
|
17
|
-
return true
|
18
|
-
end
|
15
|
+
return _save if form_object.valid?
|
19
16
|
false
|
20
17
|
rescue
|
21
18
|
false
|
@@ -45,6 +42,8 @@ module SlimFormObject
|
|
45
42
|
stage_4(data_objects_arr)
|
46
43
|
form_object.after_save_form_block.call(form_object)
|
47
44
|
end
|
45
|
+
|
46
|
+
true
|
48
47
|
end
|
49
48
|
|
50
49
|
# association per parent with all nested objects
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nerzh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|