whyvalidationssuckin96 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
@@ -85,7 +85,8 @@ module WhyValidationsSuckIn96
|
|
85
85
|
|
86
86
|
def valid_with_lifecycle_checking?
|
87
87
|
validations_for_current_lifecycle.collect do |validation|
|
88
|
-
validation.
|
88
|
+
# Checks manually because a 'nil' return is considered a skipped validation, not a failed one.
|
89
|
+
(validation.validates? == false) ? false : true
|
89
90
|
end.all?
|
90
91
|
end
|
91
92
|
|
@@ -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.3"
|
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"]
|