From f881a8c83c54da98e5c3058a48a1cde952b1be8a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 2 Aug 2020 15:53:13 +0100 Subject: [PATCH] Register warning and error flash types Fixes #2743 --- app/controllers/application_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 616223a06..f305e14d7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,6 +3,8 @@ class ApplicationController < ActionController::Base protect_from_forgery :with => :exception + add_flash_types :warning, :error + rescue_from CanCan::AccessDenied, :with => :deny_access check_authorization -- 2.39.5