#465: Skip verify_authorized for 500 and 400 errors

This commit is contained in:
Vokhmin Alexey V 2015-04-14 23:37:40 +03:00
parent bc4fb57d3b
commit e4fdec318f
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ class ApplicationController < ActionController::Base
before_action :banned? before_action :banned?
after_action -> { EventLog.current_controller = nil } after_action -> { EventLog.current_controller = nil }
after_action :verify_authorized, unless: :devise_controller? after_action :verify_authorized, unless: :devise_controller?
skip_after_action :verify_authorized, only: %i(render_500 render_404)
helper_method :get_owner helper_method :get_owner