1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/helpers/ingredients_helper.rb
2019-09-13 14:48:43 +02:00

15 lines
254 B
Ruby

module IngredientsHelper
def unit_options
@project.units.map do |u|
[u.shortname, u.id]
end
end
def group_options
translations = t('.groups')
Ingredient.groups.map do |k,v|
[translations[k.to_sym], k]
end
end
end