tab/app/helpers/application_helper.rb
2016-02-17 15:45:00 +01:00

13 lines
177 B
Ruby

module ApplicationHelper
def euro f
number_to_currency f, unit: '€'
end
def euro_from_cents(f)
if f
euro (f / 100.0)
else
nil
end
end
end