Module: Voom::Presenters::Helpers::Rails::Currency

Includes:
ActionView::Helpers::NumberHelper
Included in:
Voom::Presenters::Helpers::Rails
Defined in:
lib/voom/presenters/helpers/rails/currency.rb

Instance Method Summary collapse

Instance Method Details

#cents_to_currency(amount) ⇒ Object



8
9
10
# File 'lib/voom/presenters/helpers/rails/currency.rb', line 8

def cents_to_currency(amount)
  number_to_currency(amount.to_f / 100)
end