From: Tom Hughes Date: Sun, 2 Aug 2020 14:53:13 +0000 (+0100) Subject: Register warning and error flash types X-Git-Tag: live~2058 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f881a8c83c54da98e5c3058a48a1cde952b1be8a Register warning and error flash types Fixes #2743 --- 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