caprese 0.3.15.1 → 0.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/caprese/record/associated_validator.rb +4 -1
- data/lib/caprese/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd2cab0612e93540be995aba763d91b63e01af39
|
4
|
+
data.tar.gz: e948d190d28ff0fccba730c0488ece215d9590a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 556a53ef717946b457a69f1e2208eed0527393771805566ca664e01274e751e15cbb3603acad916440561ba67d46a42a51096e174d1f17d9f034706258192f92
|
7
|
+
data.tar.gz: 6a2ea38817d702b74d6928c694f909520a9b70c54b213d8bbc813c01f0b0ec7780116887873c5a23ffda146394b60638d7d70d78ca585e294ba329cc07139273
|
data/CHANGELOG.md
CHANGED
@@ -26,7 +26,10 @@ module Caprese
|
|
26
26
|
|
27
27
|
module ClassMethods
|
28
28
|
def validates_associated(*attr_names)
|
29
|
-
validates_with
|
29
|
+
validates_with(
|
30
|
+
(Caprese::Record.caprese_style_errors ? Caprese::Record : ActiveModel::Validations)::AssociatedValidator,
|
31
|
+
_merge_attributes(attr_names)
|
32
|
+
)
|
30
33
|
end
|
31
34
|
end
|
32
35
|
end
|
data/lib/caprese/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caprese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Landgrebe
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-03-
|
13
|
+
date: 2017-03-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_model_serializers
|