Methods
C
F
L
N
R
Attributes
[R] route_sets
Class Public methods
new()
# File railties/lib/rails/application/routes_reloader.rb, line 6
def initialize
  super([]) { reload! }
  @route_sets = []
end
Instance Public methods
reload!()
# File railties/lib/rails/application/routes_reloader.rb, line 11
def reload!
  clear!
  load_paths
  finalize!
ensure
  revert
end
Instance Protected methods
clear!()
# File railties/lib/rails/application/routes_reloader.rb, line 21
def clear!
  route_sets.each do |routes|
    routes.disable_clear_and_finalize = true
    routes.clear!
  end
end
finalize!()
# File railties/lib/rails/application/routes_reloader.rb, line 32
def finalize!
  route_sets.each do |routes|
    ActiveSupport.on_load(:action_controller) { routes.finalize! }
  end
end
load_paths()
# File railties/lib/rails/application/routes_reloader.rb, line 28
def load_paths
  paths.each { |path| load(path) }
end
revert()
# File railties/lib/rails/application/routes_reloader.rb, line 38
def revert
  route_sets.each do |routes|
    routes.disable_clear_and_finalize = false
  end
end