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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
-**Breaking change**: Remove deprecated methods:
7
7
-`Money.infinite_precision`
8
8
-`Money.infinite_precision=`
9
+
-**Breaking change**: Default currency is now `nil` instead of `USD`. If you want to keep the previous behavior, set `Money.default_currency = Money::Currency.find("USD")` in your initializer. Initializing a Money object will raise a `Currency::NoCurrency` if no currency is set.
9
10
-**Potential breaking change**: Fix RSD (Serbian Dinar) formatting to be like `12.345,42 RSD`
10
11
-**Potential breaking change**: Fix USDC decimals places from 2 to 6
11
12
-**Potential breaking change**: Fix MGA (Malagasy Ariary) to be a zero-decimal currency (changing subunit_to_unit from 5 to 1)
By default `Money` defaults to USD as its currency. This can be overwritten
196
-
using:
195
+
A default currency is not set by default. If a default currency is not set, it will raise an error when you try to initialize a `Money` object without explicitly passing a currency or parse a string that does not contain a currency. You can set a default currency for your application by using:
0 commit comments