class ActionDispatch::DebugExceptions

def api_request?(content_type)

def api_request?(content_type)
  @response_format == :api && !content_type.html?
end