whyvalidationssuckin96 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/whyvalidationssuckin96/validation_support.rb +2 -1
- data/whyvalidationssuckin96.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
@@ -23,7 +23,8 @@ module WhyValidationsSuckIn96
|
|
23
23
|
# @return [true, false]
|
24
24
|
def valid?
|
25
25
|
all_validations.collect do |validation|
|
26
|
-
validation.
|
26
|
+
# Checks manually because a 'nil' return is considered a skipped validation, not a failed one.
|
27
|
+
(validation.validates? == false) ? false : true
|
27
28
|
end.all?
|
28
29
|
end
|
29
30
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{whyvalidationssuckin96}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["gabrielg", "douglasmeyer"]
|