aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Ripert <negatif@gmail.com>2008-05-05 18:13:40 +0200
committerSunny Ripert <negatif@gmail.com>2008-05-05 18:13:40 +0200
commit9482da621390c874da7c921c8bd6230caae7035a (patch)
tree8bab6166a7a53e36b22bb78e8a4bc7d9aac8a8d3
parente9afd6790a8f530528f6597a7f59bb283be754f6 (diff)
downloadrails-9482da621390c874da7c921c8bd6230caae7035a.tar.gz
rails-9482da621390c874da7c921c8bd6230caae7035a.tar.bz2
rails-9482da621390c874da7c921c8bd6230caae7035a.zip
validates_numericality_of() "integer" option really is "only_integer"
-rwxr-xr-xactiverecord/lib/active_record/validations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb
index 50db32725d..cb878415ef 100755
--- a/activerecord/lib/active_record/validations.rb
+++ b/activerecord/lib/active_record/validations.rb
@@ -802,8 +802,8 @@ module ActiveRecord
end
# Validates whether the value of the specified attribute is numeric by trying to convert it to
- # a float with Kernel.Float (if <tt>integer</tt> is false) or applying it to the regular expression
- # <tt>/\A[\+\-]?\d+\Z/</tt> (if <tt>integer</tt> is set to true).
+ # 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).
#
# class Person < ActiveRecord::Base
# validates_numericality_of :value, :on => :create