diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-06-08 20:32:08 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-06-08 20:32:08 -0500 |
commit | 28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c (patch) | |
tree | 12a75c1f70aa1962bb0ba415562ac29ca76c6404 /activemodel/lib/active_model/validations/numericality.rb | |
parent | 01515f8ecd90150320c7edf1df23850f2a4fdf07 (diff) | |
download | rails-28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c.tar.gz rails-28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c.tar.bz2 rails-28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c.zip |
Properly require ActiveModel validation dependencies
Diffstat (limited to 'activemodel/lib/active_model/validations/numericality.rb')
-rw-r--r-- | activemodel/lib/active_model/validations/numericality.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb index 79fca2f1ea..ada6e28594 100644 --- a/activemodel/lib/active_model/validations/numericality.rb +++ b/activemodel/lib/active_model/validations/numericality.rb @@ -71,7 +71,7 @@ module ActiveModel case option when :odd, :even unless raw_value.to_i.method(ALL_NUMERICALITY_CHECKS[option])[] - record.errors.add(attr_name, option, :value => raw_value, :default => configuration[:message]) + record.errors.add(attr_name, option, :value => raw_value, :default => configuration[:message]) end else unless raw_value.method(ALL_NUMERICALITY_CHECKS[option])[configuration[option]] @@ -83,4 +83,4 @@ module ActiveModel end end end -end
\ No newline at end of file +end |