class Rails::Engine::LazyRouteSet
:nodoc:
def call(req)
def call(req) Rails.application&.reload_routes_unless_loaded super end
def draw(&block)
def draw(&block) Rails.application&.reload_routes_unless_loaded super end
def generate_extras(options, recall = {})
def generate_extras(options, recall = {}) Rails.application&.reload_routes_unless_loaded super(options, recall) end
def generate_url_helpers(supports_path)
def generate_url_helpers(supports_path) super.tap { |mod| mod.singleton_class.prepend(ProxyUrlHelpers) } end
def initialize(config = DEFAULT_CONFIG)
def initialize(config = DEFAULT_CONFIG) super self.named_routes = NamedRouteCollection.new named_routes.url_helpers_module.prepend(method_missing_module) named_routes.path_helpers_module.prepend(method_missing_module) end
def method_missing(...)
def method_missing(...) if Rails.application&.reload_routes_unless_loaded public_send(...) else super end end
def method_missing_module
def method_missing_module @method_missing_module ||= Module.new do private def method_missing(...) if Rails.application&.reload_routes_unless_loaded public_send(...) else super end end def respond_to_missing?(...) if Rails.application&.reload_routes_unless_loaded respond_to?(...) else super end end end end
def recognize_path(path, environment = {})
def recognize_path(path, environment = {}) Rails.application&.reload_routes_unless_loaded super end
def recognize_path_with_request(...)
def recognize_path_with_request(...) Rails.application&.reload_routes_unless_loaded super end
def respond_to_missing?(...)
def respond_to_missing?(...) if Rails.application&.reload_routes_unless_loaded respond_to?(...) else super end end
def routes
def routes Rails.application&.reload_routes_unless_loaded super end