diff options
author | Sunny Ripert <negatif@gmail.com> | 2008-05-05 18:13:40 +0200 |
---|---|---|
committer | Sunny Ripert <negatif@gmail.com> | 2008-05-05 18:13:40 +0200 |
commit | 9482da621390c874da7c921c8bd6230caae7035a (patch) | |
tree | 8bab6166a7a53e36b22bb78e8a4bc7d9aac8a8d3 | |
parent | e9afd6790a8f530528f6597a7f59bb283be754f6 (diff) | |
download | rails-9482da621390c874da7c921c8bd6230caae7035a.tar.gz rails-9482da621390c874da7c921c8bd6230caae7035a.tar.bz2 rails-9482da621390c874da7c921c8bd6230caae7035a.zip |
validates_numericality_of() "integer" option really is "only_integer"
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 4 |
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 |