class method
self.new
Ruby on Rails edge
Since v3.1.12Signature
self.new(file_watcher: ActiveSupport::FileUpdateChecker)
No documentation comment.
Parameters
-
file_watcherkey = ActiveSupport::FileUpdateChecker
Source
# File railties/lib/rails/application/routes_reloader.rb, line 15
def initialize(file_watcher: ActiveSupport::FileUpdateChecker)
@paths = []
@route_sets = []
@external_routes = []
@eager_load = false
@load_state = nil # nil (not loaded yet) | :loading | :loaded
@load_lock = Monitor.new
@file_watcher = file_watcher
end
Defined in railties/lib/rails/application/routes_reloader.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application::RoutesReloader