class ActionDispatch::Routing::RouteWrapper

def endpoint

def endpoint
  case
  when app.dispatcher?
    "#{controller}##{action}"
  when rack_app.is_a?(Proc)
    "Inline handler (Proc/Lambda)"
  else
    rack_app.inspect
  end
end