Module: RedmineCrm::Currency::Loader

Included in:
RedmineCrm::Currency
Defined in:
lib/redmine_crm/currency/loader.rb

Constant Summary collapse

DATA_PATH =
File.expand_path("../../../../config", __FILE__)

Instance Method Summary collapse

Instance Method Details

#load_currenciesHash

Loads and returns the currencies stored in JSON files in the config directory.

Returns:

  • (Hash)


10
11
12
# File 'lib/redmine_crm/currency/loader.rb', line 10

def load_currencies
  parse_currency_file('currency_iso.json')
end