method
reload_routes!
v3.0.9 -
Show latest stable
- Class:
Rails::Application
reload_routes!()public
No documentation available.
# File railties/lib/rails/application.rb, line 123
def reload_routes!
_routes = self.routes
_routes.disable_clear_and_finalize = true
_routes.clear!
routes_reloader.paths.each { |path| load(path) }
ActiveSupport.on_load(:action_controller) { _routes.finalize! }
ensure
_routes.disable_clear_and_finalize = false
end