Skip to content

Commit

Permalink
Remove 'before_action' filter for not defined actions
Browse files Browse the repository at this point in the history
A filter that is defined only for :create, :update, and :destroy can be
removed, if none of those actions are defined.
  • Loading branch information
eduardoj committed Jan 14, 2021
1 parent 148a8ce commit 0b7639f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/api/app/controllers/issues_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class IssuesController < ApplicationController
before_action :require_admin, only: [:create, :update, :destroy]

def show
required_parameters :id, :issue_tracker_name

Expand Down

0 comments on commit 0b7639f

Please sign in to comment.