Reduce skip_before_action usage
This commit is contained in:
@ -3,9 +3,6 @@
|
||||
class CommentsController < ApplicationController
|
||||
before_action :set_comment, only: %i[show update destroy]
|
||||
|
||||
# to disable authorization check: comment the line below back in
|
||||
# skip_after_action :verify_authorized
|
||||
|
||||
def authorize!
|
||||
authorize(@comment || @comments)
|
||||
end
|
||||
|
Reference in New Issue
Block a user