instance method
_with_routes
Ruby on Rails 3.2.22.5
Since v3.1.12Signature
_with_routes(routes)
No documentation comment.
Parameters
-
routesreq
Source
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 155
def _with_routes(routes)
old_routes, @_routes = @_routes, routes
yield
ensure
@_routes = old_routes
end
Defined in actionpack/lib/action_dispatch/routing/url_for.rb line 155
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::UrlFor