You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was experiencing an issue in a form with the possibility to switch between currencies without decimals (JPY).
As expected as per https://github.com/RubyMoney/monetize?tab=readme-ov-file#usage, inserting 123,456 for JPY, even if , is the thousands separator for JPY resulted in 123, because Monetize allows fractional units by default (which may not be the case)
So I've added Monetize.expect_whole_subunits on the top of the money rails initializer
I'm asking what do you think to have a configuration option documented in Money Rails for this use case, so you can see immediately what is going wrong
The text was updated successfully, but these errors were encountered:
Slightly refers to #696
Hello, I was experiencing an issue in a form with the possibility to switch between currencies without decimals (JPY).
As expected as per https://github.com/RubyMoney/monetize?tab=readme-ov-file#usage, inserting
123,456
for JPY, even if,
is the thousands separator for JPY resulted in123
, because Monetize allows fractional units by default (which may not be the case)So I've added
Monetize.expect_whole_subunits
on the top of the money rails initializerI'm asking what do you think to have a configuration option documented in Money Rails for this use case, so you can see immediately what is going wrong
The text was updated successfully, but these errors were encountered: