datamapper/dm-core — pull request #273 by FeeJai (2014-11-23 04:15:36+00:00)
Title: Fix the casting from String to Numeric for zero-leading values

At the moment, when assigning a numeric String beginning with a '0'-character to a Number value, Model.valid? returns true while Model.save fails. This is a fix, borrowed from https://github.com/solnic/virtus/pull/124