method
define_mounted_helper
v3.2.1 -
Show latest stable
- Class:
ActionDispatch::Routing::RouteSet
define_mounted_helper(name)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/route_set.rb, line 302
def define_mounted_helper(name)
return if MountedHelpers.method_defined?(name)
routes = self
MountedHelpers.class_eval do
define_method "_#{name}" do
RoutesProxy.new(routes, self._routes_context)
end
end
MountedHelpers.class_eval def #{name} @#{name} ||= _#{name} end
end