1
0

Added Ingredients import action

This commit is contained in:
cryptogopher
2019-09-15 22:27:54 +02:00
parent 6e3cf2f189
commit b69bdd6049
6 changed files with 41 additions and 4 deletions

View File

@@ -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