lib/action_dispatch/journey/nfa/dot.rb in actionpack-4.1.16 vs lib/action_dispatch/journey/nfa/dot.rb in actionpack-4.2.0.beta1
- old
+ new
@@ -14,12 +14,12 @@
# if Journey::Route === n
# label = "#{n.verb.source} #{n.path.spec}"
# end
# " #{n.object_id} [label=\"#{label}\", shape=box];"
#}
- #memo_edges = memos.map { |k, memos|
+ #memo_edges = memos.flat_map { |k, memos|
# (memos || []).map { |v| " #{k} -> #{v.object_id};" }
- #}.flatten.uniq
+ #}.uniq
<<-eodot
digraph nfa {
rankdir=LR;
node [shape = doublecircle];