tram-validators 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/lib/tram/validators/contract_validator.rb +1 -1
- data/tram-validators.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec92d7c68a5e2dbfa32186ae6c1c36ce9cc1664d
|
4
|
+
data.tar.gz: 66e7694f05340e8ca51656599b0dfd9fbfb2f821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f09e4fc491253e62c2c34cdefa8f0ca27f73098e6cd83f887266913dc47d5a49c6d2b9721a695a9f97f1d7e09ac5f92a4e83ef504fdfe8a167a5fe6b9ec3b4d7
|
7
|
+
data.tar.gz: 0ee2f8fbf636a5e993cc3e452e4914ba34711cd4de2573bfe8f252c4ba270055c59eb47d00d0dd6ed8deaf8cefe1c9331359ee154f335b473d0e6f47875c067d
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# v0.0.
|
1
|
+
# v0.0.4 (2017-01-30)
|
2
2
|
|
3
3
|
## Bug fixes
|
4
4
|
- Error messages from validity and contract validators (nepalez)
|
5
5
|
|
6
|
-
[Compare v0.0.2...v0.0.
|
6
|
+
[Compare v0.0.2...v0.0.4](https://github.com/tram-rb/tram-validators/compare/v0.0.2...v0.0.4)
|
7
7
|
|
8
8
|
# v0.0.2 (2017-01-27)
|
9
9
|
|
@@ -11,7 +11,7 @@ class ContractValidator < ActiveModel::EachValidator
|
|
11
11
|
source = policy.new(value)
|
12
12
|
return if source.valid?
|
13
13
|
|
14
|
-
key = "contract_#{policy.name.underscore}"
|
14
|
+
key = :"contract_#{policy.name.underscore}"
|
15
15
|
Tram::Validators.copy_errors(source, record, attribute, key, value, options)
|
16
16
|
end
|
17
17
|
end
|
data/tram-validators.gemspec
CHANGED