instance method
reset_routes
Ruby on Rails 7.2.3
Since v7.1.6 PrivateSignature
reset_routes(old_routes, old_controller)
No documentation comment.
Parameters
-
old_routesreq -
old_controllerreq
Source
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 294
def reset_routes(old_routes, old_controller)
@routes = old_routes
if @controller
@controller = old_controller
end
end
Defined in actionpack/lib/action_dispatch/testing/assertions/routing.rb line 294
· View on GitHub
· Improve this page
· Find usages on GitHub