Skip to content

Commit

Permalink
Merge pull request #50 from plural/pundit-warning
Browse files Browse the repository at this point in the history
Fix a warning from Pundit
  • Loading branch information
plural authored Apr 13, 2022
2 parents 07accfe + 56ba5ad commit c49dd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception

include Pundit
include Pundit::Authorization
after_action :verify_authorized
rescue_from Pundit::NotAuthorizedError, with: :user_not_authorised
rescue_from ActiveRecord::RecordNotFound, with: :error
Expand Down

0 comments on commit c49dd1d

Please sign in to comment.