Subject: validates_numericality_of bug?
I notice a quirk with the numericality validator; consider the following example on a decimal(10,2) field "amount":
static $validates_numericality_of = array( array('amount', 'greater_than' => 0.00), );
With this rule in place, all seemed fine until I tried a value of 1000 or higher. Setting amount = 1000 (or higher) does not pass this validation rule, even though 1000 is clearly greater than 0. Bug?
June 27 2010
September 23, 2011
Subject: validates_numericality_of bug?
I notice a quirk with the numericality validator; consider the following example on a decimal(10,2) field "amount":
With this rule in place, all seemed fine until I tried a value of 1000 or higher. Setting amount = 1000 (or higher) does not pass this validation rule, even though 1000 is clearly greater than 0. Bug?