Class: Rails::Application::RoutesReloader
- Inherits:
-
ActiveSupport::FileUpdateChecker
- Object
- ActiveSupport::FileUpdateChecker
- Rails::Application::RoutesReloader
- Defined in:
- lib/rails/application/routes_reloader.rb
Instance Attribute Summary collapse
-
#route_sets ⇒ Object
readonly
Returns the value of attribute route_sets.
Instance Method Summary collapse
-
#initialize ⇒ RoutesReloader
constructor
A new instance of RoutesReloader.
- #reload! ⇒ Object
Constructor Details
#initialize ⇒ RoutesReloader
Returns a new instance of RoutesReloader.
6 7 8 9 |
# File 'lib/rails/application/routes_reloader.rb', line 6 def initialize super([]) { reload! } @route_sets = [] end |
Instance Attribute Details
#route_sets ⇒ Object (readonly)
Returns the value of attribute route_sets.
4 5 6 |
# File '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 'lib/rails/application/routes_reloader.rb', line 11 def reload! clear! load_paths finalize! ensure revert end |