public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
Search Repo:
validates_numericality_of() "integer" option really is 
"only_integer"
sunny (author)
Mon May 05 09:13:40 -0700 2008
commit  9482da621390c874da7c921c8bd6230caae7035a
tree    8bab6166a7a53e36b22bb78e8a4bc7d9aac8a8d3
parent  e9afd6790a8f530528f6597a7f59bb283be754f6
...
802
803
804
805
806
 
 
807
808
809
...
802
803
804
 
 
805
806
807
808
809
0
@@ -802,8 +802,8 @@ module ActiveRecord
0
       end
0
 
0
       # Validates whether the value of the specified attribute is numeric by trying to convert it to
0
- # a float with Kernel.Float (if <tt>integer</tt> is false) or applying it to the regular expression
0
- # <tt>/\A[\+\-]?\d+\Z/</tt> (if <tt>integer</tt> is set to true).
0
+ # a float with Kernel.Float (if <tt>only_integer</tt> is false) or applying it to the regular expression
0
+ # <tt>/\A[\+\-]?\d+\Z/</tt> (if <tt>only_integer</tt> is set to true).
0
       #
0
       # class Person < ActiveRecord::Base
0
       # validates_numericality_of :value, :on => :create

Comments

    No one has commented yet.