Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/money_attribute/core_ext.rb
Overview
:nodoc
Instance Method Summary collapse
Instance Method Details
#to_money(currency = MoneyAttribute.default_currency) ⇒ Object
23 24 25 |
# File 'lib/money_attribute/core_ext.rb', line 23 def to_money(currency = MoneyAttribute.default_currency) ::Mint.money(to_r, currency) end |