Module: Stall::DefaultCurrencyManager

Extended by:
ActiveSupport::Concern
Defined in:
lib/stall/default_currency_manager.rb

Instance Method Summary collapse

Instance Method Details

#currencyObject



13
14
15
16
17
18
19
# File 'lib/stall/default_currency_manager.rb', line 13

def currency
  if (currency = read_attribute(:currency).presence)
    Money::Currency.new(currency)
  else
    self.currency = Stall.config.default_currency
  end
end