mongoid/mongoid — pull request #2465 by gerad (2012-10-11 18:41:28+00:00)
Title: add attribute_before_type_cast

Among other things, this fixes numericality validation. If this looks good, and
it's deemed necessary, I'm happy to add a configuration option which disables
the functionality for people with memory overhead concerns.

See #2137, #2237, #2436, #2429, #2450.