elementar/delocalize — pull request #1 by thedarkone (2013-09-30 10:16:53+00:00)
Title: Fix type_cast_for_write on Rails 4.

Numeric `type_cast_for_write` also needs to be patched on Rail 4 (similar to how `convert_number_column_value` is handled on Rails 3.x). This fixes `AR#validates_numericality_of` which uses a `before_type_cast` accessor.