store_model 0.8.1 → 0.8.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08b39695323b89c1d405590f4947ca989e00c74a4eab76c00acb593f21d46a83'
|
4
|
+
data.tar.gz: dedd6070fdce1873ec69f582877aa3219ffb925c1aa7d4a249c80d8524017aa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 783d91fbea217d2a72e7495ce068b7dba1ea90a6828fde79ce2af9278acac0fdde85cd9a57b928bb2197f55f08229bdb23b69584f27ca1c3e9787c8abe061a93
|
7
|
+
data.tar.gz: 459659e56410f04f32e5196e2a93799b6022c3aa10d240dc44abf69d0b7da016c705c0baba5fd89822ee8d0aa35469e9dbae41b2ec9bc1909d0f231149c64586
|
@@ -13,7 +13,8 @@ module StoreModel
|
|
13
13
|
# attribute
|
14
14
|
def call(attribute, base_errors, store_model_errors)
|
15
15
|
if Rails::VERSION::MAJOR < 6 || Rails::VERSION::MAJOR == 6 && Rails::VERSION::MINOR.zero?
|
16
|
-
base_errors.
|
16
|
+
base_errors.delete(attribute)
|
17
|
+
store_model_errors.each { |field, error| base_errors.add(field, error) }
|
17
18
|
else
|
18
19
|
store_model_errors.errors.each do |error|
|
19
20
|
base_errors.add(attribute, :invalid, message: error.full_message)
|
data/lib/store_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: store_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|