Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Validation fails if attribute is a Float and thousands_separator is a point #83

Closed
fire2000 opened this Issue · 1 comment

2 participants

fire2000 Andreas Loupasakis
fire2000

As the to_s method of a float returns a number formatted with a point as the decimal mark (e.g. "973.24") the validation executed in the MoneyValidator fails, if the active currency has a different decimal mark and/or thousands separator.

I think the best way is to skip the format validations for number objects (especially floats).

Andreas Loupasakis
Owner

Fixed in master

Andreas Loupasakis alup closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.