module CurrencyFormatter::Helper
Public Instance Methods
idr(amount)
click to toggle source
# File lib/currency_formatter/helper.rb, line 5 def idr(amount) ActionController::Base.helpers.number_to_currency amount.to_f, unit: 'Rp ', separator: ',', delimiter: '.', precision: 2 end
usd(amount)
click to toggle source
# File lib/currency_formatter/helper.rb, line 9 def usd(amount) ActionController::Base.helpers.number_to_currency amount.to_f, unit: '$ ', separator: '.', delimiter: ',', precision: 2 end