#465: rollback changes

This commit is contained in:
Vokhmin Alexey V 2015-04-02 01:04:53 +03:00
parent c15dfb9b2a
commit 69690024af
2 changed files with 8 additions and 8 deletions

View File

@ -23,14 +23,14 @@ class ApplicationController < ActionController::Base
helper_method :get_owner
# unless Rails.env.development?
# rescue_from Exception, with: :render_500
# rescue_from ActiveRecord::RecordNotFound,
# # ActionController::RoutingError, # see: config/routes.rb:<last line>
# ActionController::UnknownController,
# ActionController::UnknownFormat,
# AbstractController::ActionNotFound, with: :render_404
# end
unless Rails.env.development?
rescue_from Exception, with: :render_500
rescue_from ActiveRecord::RecordNotFound,
# ActionController::RoutingError, # see: config/routes.rb:<last line>
ActionController::UnknownController,
ActionController::UnknownFormat,
AbstractController::ActionNotFound, with: :render_404
end
rescue_from Pundit::NotAuthorizedError do |exception|
redirect_to forbidden_url, alert: t("flash.exception_message")