module ActionController::Rescue
def process_action(*args)
def process_action(*args) super rescue Exception => exception request.env['action_dispatch.show_detailed_exceptions'] ||= show_detailed_exceptions? rescue_with_handler(exception) || raise(exception) end