method
non_recursive
v4.1.8 -
Show latest stable
- Class:
ActionDispatch::Journey::Formatter
non_recursive(cache, options)private
No documentation available.
# File actionpack/lib/action_dispatch/journey/formatter.rb, line 91
def non_recursive(cache, options)
routes = []
stack = [cache]
while stack.any?
c = stack.shift
routes.concat(c[:___routes]) if c.key?(:___routes)
options.each do |pair|
stack << c[pair] if c.key?(pair)
end
end
routes
end