1
0

IngredientsController#index WIP

This commit is contained in:
cryptogopher
2020-04-18 01:22:21 +02:00
parent ed6b1b9fe7
commit 3ff36df168
8 changed files with 46 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
class IngredientsController < ApplicationController
include Concerns::Finders
before_action :find_ingredient, only: [:adjust]
before_action :authorize
def adjust
params.require(:ingredient).permit(:adjustment)
end
end