slim_form_object 3.3.7 → 3.3.8

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: 974cf3e55e6ae42a83d809ccb764c913fdb8fdf33676f4996524d86a23c2ac72
4
- data.tar.gz: a17ebbbb591015f8c05b5f669ca31dfe560adaf1f58ff12a014824d83797894a
3
+ metadata.gz: 00ef2937f4fd17d277cc5c329b1a68d6bf28cf272bd4a90aa44142f0a8cc1fd0
4
+ data.tar.gz: 4abbd83df6b3523126dfc19a2de0d2820d26547bc36431f40c5b4c0db3ed0b70
5
5
  SHA512:
6
- metadata.gz: 78455549dd43e89428adfd8647db17d3465c0c102f4bac343362c661e575eb1b5f73170a1e198480972714cced8a686848d17f397d0d7e7189b80eeb3de720a1
7
- data.tar.gz: a093241ea60edad95f271a731d106f0dd4665e8947c887c67a48c97d42e20aaba2714351712bd3eac3574f3afc81134bb080eda791461890a8b2927c3162b03b
6
+ metadata.gz: cde07e75464e1845bef44de45f8cdd646cc33a66de0c350ff6e8b87340d566689cc5cf34546bc1246817213aae39281d52aba2f37021a35bcf866ac83e994bab
7
+ data.tar.gz: 6d4e5b1ac2c412f880230739b0d89ea21ba5d7028b9043dfa763d2dbf60137550abcc4f9324bdbcfcd84d5cc2a46153056917a12259ef67c4d3e9769bf399802
@@ -143,7 +143,7 @@ module SlimFormObject
143
143
  define_singleton_method(:allow_to_validate_object_block) { Proc.new { true } } unless respond_to?(:allow_to_validate_object_block)
144
144
 
145
145
  define_singleton_method(:allow_to_save_object_block) do
146
- Proc.new { |object| object.valid? and object.changed? }
146
+ Proc.new { |object| object.changed? }
147
147
  end unless respond_to?(:allow_to_save_object_block)
148
148
 
149
149
  define_singleton_method(:allow_object_processing_block) do
@@ -22,7 +22,6 @@ module SlimFormObject
22
22
  end
23
23
 
24
24
  def save!
25
- form_object.validate
26
25
  _save
27
26
  end
28
27
 
@@ -1,3 +1,3 @@
1
1
  module SlimFormObject
2
- VERSION = "3.3.7"
2
+ VERSION = "3.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim_form_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.7
4
+ version: 3.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh