Forgot to commit helper

This commit is contained in:
David Vandorpe 2015-07-08 17:43:20 +02:00
parent ee86411d58
commit 595d8ed282

View file

@ -0,0 +1,13 @@
module ProductsHelper
def kcal(calories)
calories.to_s + " kcal"
end
def kcal_tag(calories)
if calories
content_tag :small, kcal(calories)
else
' '.html_safe
end
end
end