Module: EasyRailsMoney::Configuration

Included in:
EasyRailsMoney
Defined in:
lib/easy_rails_money/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



5
6
7
# File 'lib/easy_rails_money/configuration.rb', line 5

def configure
  yield self
end

#default_currencyObject



12
13
14
15
16
# File 'lib/easy_rails_money/configuration.rb', line 12

def default_currency
  default =  Money.default_currency
  return default if default.is_a? ::Money::Currency
  return ::Money::Currency.new(default)
end