aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/numericality.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-05-11 12:28:42 +0200
committerCarl Lerche <carllerche@mac.com>2010-05-13 13:57:37 -0700
commit9131a88bb8e82f139ec49b4057fb6065ba0a2c6a (patch)
tree5586a5c35711866acdbc2408cc70e50197229fae /activemodel/lib/active_model/validations/numericality.rb
parent2203c781a7dfa8b0c8b6c97cd318d941f9fbb26c (diff)
downloadrails-9131a88bb8e82f139ec49b4057fb6065ba0a2c6a.tar.gz
rails-9131a88bb8e82f139ec49b4057fb6065ba0a2c6a.tar.bz2
rails-9131a88bb8e82f139ec49b4057fb6065ba0a2c6a.zip
validation macros can now be used within an instance
Diffstat (limited to 'activemodel/lib/active_model/validations/numericality.rb')
-rw-r--r--activemodel/lib/active_model/validations/numericality.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb
index f974999bef..716010e88b 100644
--- a/activemodel/lib/active_model/validations/numericality.rb
+++ b/activemodel/lib/active_model/validations/numericality.rb
@@ -70,7 +70,7 @@ module ActiveModel
end
- module ClassMethods
+ module HelperMethods
# Validates whether the value of the specified attribute is numeric by trying to convert it to
# a float with Kernel.Float (if <tt>only_integer</tt> is false) or applying it to the regular expression
# <tt>/\A[\+\-]?\d+\Z/</tt> (if <tt>only_integer</tt> is set to true).