Setting default_currency in a block? #1064
mountriv99
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are we able to do something like the following?
Money.with_currency("USD") do
...
end
Because I'm assuming changing the global default isn't thread-safe, right?
Context: I need to do something with the money objects in the model but the currency can only be obtained from the users at runtime and it could be different for everybody
Beta Was this translation helpful? Give feedback.
All reactions