instance method
reset_routes
Ruby on Rails 8.0.4
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 298
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 298
· View on GitHub
· Improve this page
· Find usages on GitHub