Methods
- C
-
- F
-
- L
-
- N
-
- R
-
Attributes
Class Public methods
Source: show
| on GitHub
def initialize
super([]) { reload! }
@route_sets = []
end
Instance Public methods
Source: show
| on GitHub
def reload!
clear!
load_paths
finalize!
ensure
revert
end
Instance Protected methods
Source: show
| on GitHub
def clear!
route_sets.each do |routes|
routes.disable_clear_and_finalize = true
routes.clear!
end
end
Source: show
| on GitHub
def finalize!
route_sets.each do |routes|
ActiveSupport.on_load(:action_controller) { routes.finalize! }
end
end
Source: show
| on GitHub
def load_paths
paths.each { |path| load(path) }
end
Source: show
| on GitHub
def revert
route_sets.each do |routes|
routes.disable_clear_and_finalize = false
end
end