readymade 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/readymade/form.rb +2 -2
- data/lib/readymade/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '035139f1728cf58173aeec5b885c3ddc53988b5289251a3e43c96414ff587efe'
|
4
|
+
data.tar.gz: 4da513ced3053c0144dc53ebce790e46151c5774c8a7d2e37c430858d95bf9ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f38b397999a3aec6ce02a96e6abdc0666fd6c453af00b8bcac279172834e8f4e6769ab5a9cc3dba5e1d2d51a206c4e6a68ad61e5619b8b9908647861debb6e
|
7
|
+
data.tar.gz: 9375736b65739433d6c818238763cacaaba5c0ebcc4098b5d92e769324f73c53700be74fc3b577f138889aafaffffe8182169bd9aa6be515dda8aa92a53e45cd
|
data/Gemfile.lock
CHANGED
data/lib/readymade/form.rb
CHANGED
@@ -84,8 +84,8 @@ module Readymade
|
|
84
84
|
def sync_errors(from: self, to: record)
|
85
85
|
return if [from, to].any?(&:blank?)
|
86
86
|
|
87
|
-
errors = from.errors.instance_variable_get('@messages')
|
88
|
-
errors.
|
87
|
+
errors = from.errors.instance_variable_get('@messages').to_h
|
88
|
+
errors.merge!(to.errors.instance_variable_get('@messages').to_h)
|
89
89
|
|
90
90
|
to.errors.instance_variable_set('@messages', errors)
|
91
91
|
to.errors.messages.transform_values!(&:uniq) # Does not work with rails 6.1
|
data/lib/readymade/version.rb
CHANGED