activerecord-rescue_from_duplicate 0.1.5 → 0.1.6
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: 998e5fbd4ae44c14022a24a43b6501e37ebeaa4fae22d5ae98b150bb286c8013
|
4
|
+
data.tar.gz: a9aff249013923879e7e2e9a746a16d32851d15c5b9eb327113b3f1926905e1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a61214eaacecb66b6aa8088a590ea9f944207ad2578868df5b29d517bc8abf61992b630ef8a28854d591a30409e99bccad6ecc3672936601a829b9fde1cb78ff
|
7
|
+
data.tar.gz: c0fbac267cb75a708a3dcd5a798e14861b6ff332826ef6d51bca73a2979bd5d1331679def180e8cde1c3be4839584ec7a454adbcb7f399345a32d5ba81a33393
|
@@ -38,7 +38,7 @@ module RescueFromDuplicate::ActiveRecord
|
|
38
38
|
attribute = handler.attributes.first
|
39
39
|
options = handler.options.except(:case_sensitive, :scope).merge(value: self.send(:read_attribute_for_validation, attribute))
|
40
40
|
|
41
|
-
self.errors.add(attribute, :taken, options)
|
41
|
+
self.errors.add(attribute, :taken, **options)
|
42
42
|
true
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-rescue_from_duplicate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Malette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|