123456789_123456789_123456789_123456789_123456789_

Class: Rails::Application::RoutesReloader

Relationships & Source Files
Inherits: Object
Defined in: railties/lib/rails/application/routes_reloader.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newRoutesReloader

[ GitHub ]

  
# 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 ]

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

delegate :execute_if_updated, :execute, :updated?, to: :updater

#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

[ GitHub ]

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

delegate :execute_if_updated, :execute, :updated?, to: :updater