1
0
Fork 0
MSU-Course-Alerter/app/controllers/application_controller.rb

9 lines
199 B
Ruby
Raw Normal View History

class ApplicationController < ActionController::Base
protect_from_forgery
rescue_from CanCan::AccessDenied do |exception|
flash[:error] = "Access denied."
redirect_to root_url
end
end