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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54500dfb11910e5c0440e85a92760d8577169a406dfa7710875a32ad5c8525ce
4
- data.tar.gz: f5acc8851e9c046944231847b2f4e1c12f90bed40130ba1c5e9fa074026d7172
3
+ metadata.gz: 06b26771870efd16c68abf63cfb90816df5670725dd0d9645a19ba26b2a3b211
4
+ data.tar.gz: 821b09ff19d512bb520a6fb79afc1e2417bfc40377c21015c441d46c0e7de3f6
5
5
  SHA512:
6
- metadata.gz: 9c3a0fc24425f5380e8e968d0163d466a4632f9c7cd7424d88a15dd584d37714edabb8b9e7795c5cc14ace34729ef07701568a74538bd25996e35b12c885b1b9
7
- data.tar.gz: d47bdd23ca2340acb5156d35f60303d995369df49acd4cbde94151ccc7d15c973d82c3839e7216288bb2ce77f3ac14c1411c205b38a6482e59753933488f66ba
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
@@ -1,3 +1,3 @@
1
1
  module SlimFormObject
2
- VERSION = "3.3.9"
2
+ VERSION = "3.3.10"
3
3
  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.9
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-29 00:00:00.000000000 Z
11
+ date: 2019-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel