方法
- E
- N
- R
包含的模块
Attributes
| [RW] | eager_load | |
| [R] | external_routes | |
| [R] | loaded | |
| [R] | paths | |
| [R] | route_sets |
类公共方法
new() 链接
来源: 显示 | 在 GitHub 上
# File railties/lib/rails/application/routes_reloader.rb, line 14 def initialize @paths = [] @route_sets = [] @external_routes = [] @eager_load = false @loaded = false end
实例公共方法
execute() 链接
来源: 显示 | 在 GitHub 上
# File railties/lib/rails/application/routes_reloader.rb, line 31 def execute @loaded = true updater.execute end
execute_unless_loaded() 链接
来源: 显示 | 在 GitHub 上
# File railties/lib/rails/application/routes_reloader.rb, line 36 def execute_unless_loaded unless @loaded execute ActiveSupport.run_load_hooks(:after_routes_loaded, Rails.application) true end end
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