yaaf 3.0.1 → 3.0.2

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: 304ced3d81e0ee7a7b5dbe4d046734f368ebb577d526318e9b2bd54ff283fcea
4
- data.tar.gz: 02ed83cff8ae59994416cb9029f2311194d73256211f30b582449184c01ac204
3
+ metadata.gz: dbd86cb443765e32aeb6af11e0808962cbc4e21686931e36430be97497a96b34
4
+ data.tar.gz: ea8597893601325795fd2f754958d716e8b9fbc387eb3022d80f1426823aa968
5
5
  SHA512:
6
- metadata.gz: bd4b302b924a5f0f13332a496ee5c99974ee6e5f0490b95eadca2adb84a97fd9cf334035be50afeb633d0ee45bc5592679ef62a5d1e5172e8729e5418686baf5
7
- data.tar.gz: d1aeef347102365d857e464fd9aadbaff6e1d4b28710806ade359ad56b8aa723f0e3476ab3b8b3be6136459fd7f92b8250d313d83ed6768fe6b7d974e9e11a1b
6
+ metadata.gz: 99e1eb0a6cf12be82c76d7f8da2c610ecbcf14b7ed2873b8eddb943f2716d4ed3d972163ff278df767588cc2f580083d331b26108474446571c5e32e82bc6301
7
+ data.tar.gz: 418b22b8ca4a4cb6d1ba96d3700f245d70941cc204a4ba4d879e6c1a6183e6ef71bea2c5fcca976d490fe7170e4dc18b8b2083e37649a32e94bc4467924491d9
data/lib/yaaf/form.rb CHANGED
@@ -62,7 +62,11 @@ module YAAF
62
62
  end
63
63
 
64
64
  def validate_models
65
- models.each { |model| promote_errors(model) if model.invalid? }
65
+ models.each do |model|
66
+ next if model.respond_to?(:marked_for_destruction?) && model.marked_for_destruction?
67
+
68
+ promote_errors(model) if model.invalid?
69
+ end
66
70
  end
67
71
 
68
72
  def promote_errors(model)
data/lib/yaaf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YAAF
4
- VERSION = '3.0.1'
4
+ VERSION = '3.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Manuel Ramallo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-10-03 00:00:00.000000000 Z
12
+ date: 2024-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel