parent
eee84267f9
commit
f881a8c83c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue