Flowdock
method

define_mounted_helper

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::RouteSet
define_mounted_helper(name) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/route_set.rb, line 372
      def define_mounted_helper(name)
        return if MountedHelpers.method_defined?(name)

        routes = self
        MountedHelpers.class_eval do
          define_method "_#{name}" do
            RoutesProxy.new(routes, _routes_context)
          end
        end

        MountedHelpers.class_eval(          def #{name}            @_#{name} ||= _#{name}          end, __FILE__, __LINE__ + 1)
      end
Register or log in to add new notes.