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
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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