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

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

Instance Method Summary collapse

Instance Method Details

#route_defined?(name) ⇒ Boolean

Returns:

  • (Boolean)


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

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