IngredientsController#index WIP
This commit is contained in:
10
app/controllers/ingredients_controller.rb
Normal file
10
app/controllers/ingredients_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user