app/controllers/ems/application_controller.rb in ems-0.1.7 vs app/controllers/ems/application_controller.rb in ems-0.1.8

- old
+ new

@@ -4,12 +4,12 @@ before_filter :authenticate_user! # Also make sure we either have to check cancan or skipit, emtpy is too risky check_authorization # # Global cancan failure recovery - # rescue_from CanCan::AccessDenied do |exception| - # redirect_to main_app.new_user_session_path, :alert => exception.message - # end + rescue_from CanCan::AccessDenied do |exception| + redirect_to main_app.new_user_session_path, :alert => exception.message + end # We need to make sure that we are using the ems abilities in the EMS def current_ability @current_ability ||= Ability.new(current_user) end