Skip to content

Commit

Permalink
pundit authorization error fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ubuntu <ubuntu@ip-172-31-11-134.ec2.internal>
  • Loading branch information
Ubuntu committed Jul 30, 2024
1 parent bddf11d commit 419aace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supermarket/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base
include CustomUrlHelper

rescue_from(
NotAuthorizedError,
Pundit::NotAuthorizedError,
ActiveRecord::RecordNotFound,
ActionController::UnknownFormat,
ActionView::MissingTemplate
Expand Down

0 comments on commit 419aace

Please sign in to comment.