Closed TastyPi closed 6 months ago
Ah, it turns out there is an option MoneyRails.raise_error_on_money_parsing
that needs to be set to true
, but is undocumented.
The generated setter by monetize still silently ignore a currency if not found and use the default value. And it won't raise any error even if setting MoneyRails.raise_error_on_money_parsing
.
When a model does not have a currency attribute,
monetize
does not check whether the value passed toamount=
uses the correct currency.e.g.
The currency is silently converted from
EUR
toUSD
with no error.