diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb index 4eccba2765..fdfcab2d3f 100644 --- a/lib/arel/nodes/binary.rb +++ b/lib/arel/nodes/binary.rb @@ -18,7 +18,7 @@ module Arel # # Maybe we should just use `Table.engine`? :'( def to_sql - viz = Visitors::ToSql.new left.relation.engine + viz = Visitors::ToSql.new Table.engine viz.accept self end end