2013-03-29 19:39:35 -04:00
|
|
|
class ApplicationController < ActionController::Base
|
|
|
|
protect_from_forgery
|
2013-04-07 06:08:34 -04:00
|
|
|
|
|
|
|
rescue_from CanCan::AccessDenied do |exception|
|
|
|
|
flash[:error] = "Access denied."
|
|
|
|
redirect_to root_url
|
|
|
|
end
|
2013-03-29 19:39:35 -04:00
|
|
|
end
|