mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
0dd40fe72c
commit
c7f12f1529
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ module ActiveModel
|
|||
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>
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue