reduce error log

This commit is contained in:
Pete Matsyburka
2024-02-16 19:44:59 +02:00
parent 4449475467
commit f8a654a5b6
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base
if Rails.env.production?
rescue_from CanCan::AccessDenied do |e|
Rollbar.error(e) if defined?(Rollbar)
Rollbar.warning(e) if defined?(Rollbar)
redirect_to root_path, alert: e.message
end