Register warning and error flash types

Fixes #2743
This commit is contained in:
Tom Hughes 2020-08-02 15:53:13 +01:00
parent eee84267f9
commit f881a8c83c

View file

@ -3,6 +3,8 @@ class ApplicationController < ActionController::Base
protect_from_forgery :with => :exception protect_from_forgery :with => :exception
add_flash_types :warning, :error
rescue_from CanCan::AccessDenied, :with => :deny_access rescue_from CanCan::AccessDenied, :with => :deny_access
check_authorization check_authorization