]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Register warning and error flash types
[rails.git] / 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