method
_with_routes
v7.1.3.4 -
Show latest stable
- Class:
ActionDispatch::Routing::UrlFor
_with_routes(routes)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 227
def _with_routes(routes) # :doc:
old_routes, @_routes = @_routes, routes
yield
ensure
@_routes = old_routes
end