class ActionDispatch::Journey::Formatter
def possibles(cache, options, depth = 0)
def possibles(cache, options, depth = 0) cache.fetch(:___routes) { [] } + options.find_all { |pair| cache.key?(pair) }.flat_map { |pair| possibles(cache[pair], options, depth + 1) } end