Module: Money::Currency::Loader
- Defined in:
- lib/money/currency/loader.rb
Class Method Summary collapse
Class Method Details
.load_currencies ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/money/currency/loader.rb', line 8 def load_currencies currency_data_path = File.("../../../../config", __FILE__) currencies = {} currencies.merge! YAML.load_file("#{currency_data_path}/currency_historic.yml") currencies.merge! YAML.load_file("#{currency_data_path}/currency_non_iso.yml") currencies.merge! YAML.load_file("#{currency_data_path}/currency_iso.yml") deep_deduplicate!(currencies) end |