1
0

Added ingredient source setting/display/import

This commit is contained in:
cryptogopher
2019-09-23 22:33:40 +02:00
parent 0e6bbd8c74
commit 9664df4888
7 changed files with 35 additions and 6 deletions

View File

@@ -11,6 +11,12 @@ module IngredientsHelper
end
end
def source_options
@project.sources.map do |s|
[s.name, s.id]
end
end
def group_options
translations = t('.groups')
Ingredient.groups.map do |k,v|