ph_model 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ph_model/concerns/attribute_nested_validation.rb +1 -1
- data/lib/ph_model/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: 18eb5a8b10e9378536d448b174f91f656023547c
|
4
|
+
data.tar.gz: 98833d553696e61f645270860eab78de9e46a9a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4def997bc8690a1a6273a3fe9006013996980c098bad2a4031fdfc2b3ebeab40eb1ba4a904ef4280afaa177671050bf4d414fc4025ae412b267d48372f1ea440
|
7
|
+
data.tar.gz: 8b99a104a0715cccba40ad6b1f837d828c72dba5b40e87dbc1f71d3cfb4a0f3a191b83caa8af2a2ac3c0fbdf2ea05e445002f82f07fc546ea3c69c4839487171
|
@@ -23,7 +23,7 @@ module PhModel
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def check_one(value, attribute_name)
|
26
|
-
return if !value.respond_to?(:valid?) || !value.respond_to?(:errors) ||
|
26
|
+
return if !value.respond_to?(:valid?) || !value.respond_to?(:errors) || value.errors.nil? || value.valid?
|
27
27
|
value.errors.full_messages.each do |message|
|
28
28
|
errors.add(:base, "#{attribute_name}.#{message}")
|
29
29
|
end
|
data/lib/ph_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ph_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Banasik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|