Skip to content

Commit

Permalink
FIXES: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
wayungi committed Nov 17, 2022
1 parent 3ee848b commit b7fbe15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/foods_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ class FoodsController < ApplicationController
before_action :set_food, only: %i[show destroy]

def index

@foods = Food.all
end

Expand Down Expand Up @@ -39,4 +38,4 @@ def set_food
def food_params
params.require(:food).permit(:name, :measurement_unit, :price)
end
end
end

0 comments on commit b7fbe15

Please sign in to comment.