module ActionController::Rescue

def process_action(*)

def process_action(*)
  super
rescue Exception => exception
  request.env["action_dispatch.show_detailed_exceptions"] ||= show_detailed_exceptions?
  rescue_with_handler(exception) || raise
end