From 419aace74f2390d0c245de44042153cf0fff76b5 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 30 Jul 2024 08:32:56 +0000 Subject: [PATCH] pundit authorization error fix Signed-off-by: Ubuntu --- src/supermarket/app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supermarket/app/controllers/application_controller.rb b/src/supermarket/app/controllers/application_controller.rb index 521667d58e..fffffbf4cb 100644 --- a/src/supermarket/app/controllers/application_controller.rb +++ b/src/supermarket/app/controllers/application_controller.rb @@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base include CustomUrlHelper rescue_from( - NotAuthorizedError, + Pundit::NotAuthorizedError, ActiveRecord::RecordNotFound, ActionController::UnknownFormat, ActionView::MissingTemplate