Class: Rails::Application::RoutesReloader
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | Object | 
| Defined in: | railties/lib/rails/application/routes_reloader.rb | 
Constant Summary
::ActiveSupport::Callbacks - Included
  
::ActiveSupport::Callbacks - Attributes & Methods
- .__callbacks rw
- #__callbacks readonly
- .__callbacks? ⇒ Boolean rw
- #__callbacks? ⇒ Boolean readonly
Class Method Summary
- .new ⇒ RoutesReloader constructor
::ActiveSupport::DescendantsTracker - self
Instance Attribute Summary
- #eager_load rw
- #execute readonly
- #execute_if_updated readonly
- #external_routes readonly
- #paths readonly
- #route_sets readonly
Instance Method Summary
::ActiveSupport::Callbacks - Included
| #run_callbacks | Runs the callbacks for the given event. | 
Constructor Details
    .new  ⇒ RoutesReloader 
  
# File 'railties/lib/rails/application/routes_reloader.rb', line 15
def initialize @paths = [] @route_sets = [] @external_routes = [] @eager_load = false end
Class Attribute Details
.__callbacks (rw)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 70
class_attribute :__callbacks, instance_writer: false, default: {}
    .__callbacks?  ⇒ Boolean  (rw)
  
  [ GitHub ]
# File 'activesupport/lib/active_support/callbacks.rb', line 70
class_attribute :__callbacks, instance_writer: false, default: {}
Instance Attribute Details
#__callbacks (readonly)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 70
class_attribute :__callbacks, instance_writer: false, default: {}
    #__callbacks?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'activesupport/lib/active_support/callbacks.rb', line 70
class_attribute :__callbacks, instance_writer: false, default: {}
#eager_load (rw)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 11
attr_accessor :eager_load
#execute (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 13
delegate :execute_if_updated, :execute, :updated?, to: :updater
#execute_if_updated (readonly)
[ GitHub ]#external_routes (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 10
attr_reader :route_sets, :paths, :external_routes
#paths (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 10
attr_reader :route_sets, :paths, :external_routes
#route_sets (readonly)
[ GitHub ]# File 'railties/lib/rails/application/routes_reloader.rb', line 10
attr_reader :route_sets, :paths, :external_routes
Instance Method Details
#reload!
[ GitHub ]# 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
    #updated?  ⇒ Boolean 
  
# File 'railties/lib/rails/application/routes_reloader.rb', line 13
delegate :execute_if_updated, :execute, :updated?, to: :updater