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

Closed
fire2000 opened this Issue Feb 20, 2013 · 1 comment

2 participants

@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).

@alup
RubyMoney member

Fixed in master

@alup alup closed this Jun 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment