tab/app/helpers/application_helper.rb

14 lines
177 B
Ruby
Raw Normal View History

2015-09-07 11:44:48 +02:00
module ApplicationHelper
2016-02-17 15:45:00 +01:00
def euro f
number_to_currency f, unit: '€'
end
def euro_from_cents(f)
if f
euro (f / 100.0)
else
nil
end
end
2015-09-07 11:44:48 +02:00
end