Class: Rails::Application::RoutesReloader
Relationships & Source Files | |
Inherits: | Object |
Defined in: | railties/lib/rails/application/routes_reloader.rb |
Class Method Summary
- .new ⇒ RoutesReloader constructor
Instance Attribute Summary
- #execute readonly
- #execute_if_updated readonly
- #paths readonly
- #route_sets readonly
Instance Method Summary
Constructor Details
.new ⇒ RoutesReloader
# File 'railties/lib/rails/application/routes_reloader.rb', line 9
def initialize @paths = [] @route_sets = [] end
Instance Attribute Details
#execute (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 7
delegate :execute_if_updated, :execute, :updated?, to: :updater
#execute_if_updated (readonly)
[ GitHub ]#paths (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 6
attr_reader :route_sets, :paths
#route_sets (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 6
attr_reader :route_sets, :paths
Instance Method Details
#reload!
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 14
def reload! clear! load_paths finalize! ensure revert end
#updated? ⇒ Boolean
# File 'railties/lib/rails/application/routes_reloader.rb', line 7
delegate :execute_if_updated, :execute, :updated?, to: :updater