#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

@ -19,7 +19,8 @@ class ApplicationController < ActionController::Base
only: [:create, :destroy, :open_id, :cancel, :publish, :change_visibility] # :update
before_action :banned?
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