diff options
Diffstat (limited to 'lib/arel/visitors/dot.rb')
-rw-r--r-- | lib/arel/visitors/dot.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/visitors/dot.rb b/lib/arel/visitors/dot.rb index d5033d166d..b2fa6bfbd5 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -202,7 +202,7 @@ module Arel def visit_Hash o o.each_with_index do |pair, i| - edge("pair_#{i}") { visit pair, a } + edge("pair_#{i}") { visit pair } end end @@ -216,7 +216,7 @@ module Arel edge(method) { visit o.send(method) } end - def visit o = nil + def visit o if node = @seen[o.object_id] @edge_stack.last.to = node return |