class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
rescue_from CanCan::AccessDenied do |exception|
redirect_to root_url, :alert => exception.message
end
end
I have this inside my ApplicationController and it still doesn't catch CanCan::AccessDenied in RailsAdmin::MainController#dashboard
source
share