Class: Rails::Application::RoutesReloader

Inherits:
ActiveSupport::FileUpdateChecker show all
Defined in:
railties/lib/rails/application/routes_reloader.rb

Instance Attribute Summary collapse

Attributes inherited from ActiveSupport::FileUpdateChecker

#last_update_at, #paths

Instance Method Summary collapse

Methods inherited from ActiveSupport::FileUpdateChecker

#execute_if_updated, #updated_at

Constructor Details

#initializeRoutesReloader

Returns a new instance of RoutesReloader.



6
7
8
9
# File 'railties/lib/rails/application/routes_reloader.rb', line 6

def initialize
  super([]) { reload! }
  @route_sets = []
end

Instance Attribute Details

#route_setsObject (readonly)

Returns the value of attribute route_sets



4
5
6
# File 'railties/lib/rails/application/routes_reloader.rb', line 4

def route_sets
  @route_sets
end

Instance Method Details

#reload!Object



11
12
13
14
15
16
17
# File 'railties/lib/rails/application/routes_reloader.rb', line 11

def reload!
  clear!
  load_paths
  finalize!
ensure
  revert
end