Methods
Included Modules
Attributes
[RW] | eager_load | |
[R] | external_routes | |
[R] | paths | |
[R] | route_sets |
Class Public methods
new()
📝 Source code
# File railties/lib/rails/application/routes_reloader.rb, line 15
def initialize
@paths = []
@route_sets = []
@external_routes = []
@eager_load = false
end
🔎 See on GitHub
Instance Public methods
reload!()
📝 Source code
# File railties/lib/rails/application/routes_reloader.rb, line 22
def reload!
clear!
load_paths
finalize!
route_sets.each(&:eager_load!) if eager_load
ensure
revert
end
🔎 See on GitHub