13 lines
177 B
Ruby
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
|