Class: Rails::Engine::LazyRouteSet::NamedRouteCollection

Inherits:
ActionDispatch::Routing::RouteSet::NamedRouteCollection show all
Defined in:
railties/lib/rails/engine/lazy_route_set.rb

Instance Attribute Summary

Attributes inherited from ActionDispatch::Routing::RouteSet::NamedRouteCollection

#path_helpers_module, #url_helpers_module

Instance Method Summary collapse

Methods inherited from ActionDispatch::Routing::RouteSet::NamedRouteCollection

#add, #add_url_helper, #clear!, #each, #get, #helper_names, #initialize, #key?, #length, #names

Methods included from Enumerable

#as_json, #compact_blank, #exclude?, #excluding, #in_order_of, #including, #index_by, #index_with, #many?, #maximum, #minimum, #pick, #pluck, #sole

Constructor Details

This class inherits a constructor from ActionDispatch::Routing::RouteSet::NamedRouteCollection

Instance Method Details

#route_defined?(name) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
# File 'railties/lib/rails/engine/lazy_route_set.rb', line 11

def route_defined?(name)
  Rails.application&.reload_routes_unless_loaded
  super
end