method

method_missing_module

rails latest stable - Class: Rails::Engine::LazyRouteSet

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

method_missing_module()
private

No documentation available.

# File railties/lib/rails/engine/lazy_route_set.rb, line 92
        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