]> git.openstreetmap.org Git - rails.git/commitdiff
Register warning and error flash types
authorTom Hughes <tom@compton.nu>
Sun, 2 Aug 2020 14:53:13 +0000 (15:53 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 2 Aug 2020 14:53:13 +0000 (15:53 +0100)
Fixes #2743

app/controllers/application_controller.rb

index 616223a068c65a11df26afba4b1e0cc8451fa4d9..f305e14d7524182cf3e5ddb12f1ce84cbb8d62b5 100644 (file)
@@ -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