Module: Money::Currency::Loader
- Defined in:
- lib/money/currency/loader.rb
Constant Summary collapse
- DATA_PATH =
File.("../../../../config", __FILE__)
Class Method Summary collapse
-
.load_currencies ⇒ Hash
Loads and returns the currencies stored in JSON files in the config directory.
Class Method Details
.load_currencies ⇒ Hash
Loads and returns the currencies stored in JSON files in the config directory.
10 11 12 13 14 |
# File 'lib/money/currency/loader.rb', line 10 def load_currencies currencies = parse_currency_file("currency_iso.json") currencies.merge! parse_currency_file("currency_non_iso.json") currencies.merge! parse_currency_file("currency_backwards_compatible.json") end |