Skip to content

Commit 773d5e5

Browse files
committed
Update CHANGELOG.md
1 parent 8ad76df commit 773d5e5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33
## Unreleased
44

55
- Fix name for ANG currency
6-
- Change disambiguate symbol for ARS from historical to international format
6+
- Change disambiguate symbol for ARS from historical to international format
7+
- Replace hardcoded methods for specific currencies (CAD, EUR, GBP, USD) with generic `currency_helpers=` config option
8+
```rb
9+
Money.currency_helpers = {
10+
mxn: 'MXN',
11+
}
12+
13+
Money.mxn(200) #=> #<Money fractional:200 currency:MXN>
14+
15+
Money.add_rate("USD", "MXN", 150)
16+
Money.new(100, "USD").as_mxn #=> #<Money fractional:15000 currency:MXN>
17+
```
718

819
## 7.0.2
920

0 commit comments

Comments
 (0)