class ActionDispatch::Routing::RouteSet::Generator

def named_route_exists?

def named_route_exists?
  named_route && set.named_routes[named_route]
end