Added nested nutrients in ingredient form
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
module IngredientsHelper
|
||||
def quantity_options
|
||||
nested_set_options(@project.quantities.diet) do |q|
|
||||
raw("#{' ' * q.level}#{q.name}")
|
||||
end
|
||||
end
|
||||
|
||||
def unit_options
|
||||
@project.units.map do |u|
|
||||
[u.shortname, u.id]
|
||||
|
||||
Reference in New Issue
Block a user