Jasper Tey Mon Feb 20 11:40:50 -0500 2012

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?