Module: EasyRailsMoney::Configuration
- Included in:
- EasyRailsMoney
- Defined in:
- lib/easy_rails_money/configuration.rb
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
5 6 7 |
# File 'lib/easy_rails_money/configuration.rb', line 5 def configure yield self end |
#default_currency ⇒ Object
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 |