mongoid/mongoid — pull request #2436 by kareemk (2012-10-04 20:24:18+00:00)
Title: Add configuration option to override typecasting non-numeric values to numeric fields

As discussed in #2429 this pull adds an configuration option allowing the behavior of setting a non-numeric value on a numeric field to behave as it did in 2.x, this allows for validate_numericality_of to behave as expected. See also #2237 and #2137.