heroku/databasedotcom — pull request #91 by ejholmes (2012-06-15 00:10:19+00:00)
Title: Replace any characters that aren't a number.

If you're using the gem for rails forms, entering something like "$300" in a currency field results in setting the value to 0.0, since it's trying to convert "$300" to a float.

This PR replaces any characters that aren't numbers before converting to a float, so a value like "$300" will result in the field getting set to 300, like we expect.