-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default_currency misconception #855
Comments
@adamduffy I guess the reason behind I like the idea of switching the default to |
Hey @antstorm, I stumbled upon this issue recently. There doesn't seem to be any work being done on this, and I thought this is a nice issue for me to get my hands dirty with contributing to open source. 🤓
I have created a PR for this change. 👌 |
#868 is now merged and will get included in v7 release |
when doing multi-currency business, it is very dangerous to not know for sure and assume a "default currency". i.e. storing
{amount: 1, currency: nil}
and assuming that's USD. USA is not the center of the universe, and neither is any other country/currency.ex:
i have a hard time thinking of a use case where not knowing and guessing is better than knowing for sure. i can think of use cases for the idea of a "preferred currency", which could be used for comparisons, but never as a fallback for unknown.
I am curious if there are use cases for the dangerous assumption, or if this is intended to be used more as a "preferred" currency.
i do see that
Money.default_currency=nil
is a good workaround. perhaps this should be the default instead ofUSD
?The text was updated successfully, but these errors were encountered: