class ActionDispatch::Routing::RouteWrapper

def endpoint

def endpoint
  app.dispatcher? ? "#{controller}##{action}" : rack_app.inspect
end