module ActiveRecord::Validations::ClassMethods
def validates_numericality_of(*attr_names)
value or 15.
+true+). +Kernel.Float+ precision defaults to the column's precision
expression /\A[\+\-]?\d+\z/ (if only_integer is set to
only_integer is +false+) or applying it to the regular
trying to convert it to a float with +Kernel.Float+ (if
Validates whether the value of the specified attribute is numeric by
def validates_numericality_of(*attr_names) validates_with NumericalityValidator, _merge_attributes(attr_names) end