Added Ingredients import action
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class IngredientsController < ApplicationController
|
||||
before_action :find_project_by_project_id, only: [:index, :create]
|
||||
before_action :find_project_by_project_id, only: [:index, :create, :import]
|
||||
before_action :find_ingredient, only: [:destroy]
|
||||
before_action :authorize
|
||||
|
||||
@@ -29,6 +29,9 @@ class IngredientsController < ApplicationController
|
||||
redirect_to project_ingredients_url(@project)
|
||||
end
|
||||
|
||||
def import
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def ingredient_params
|
||||
|
||||
Reference in New Issue
Block a user