From 77fa5fa5f7cc21824edb5b1c1ebccd58f92e982b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 27 Sep 2010 13:12:15 -0700 Subject: to_sql on nodes may be passed an engine --- lib/arel/nodes/binary.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/arel/nodes/binary.rb') diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb index 090468adfa..cfa75909c5 100644 --- a/lib/arel/nodes/binary.rb +++ b/lib/arel/nodes/binary.rb @@ -7,16 +7,6 @@ module Arel @left = left @right = right end - - # FIXME: this method should go away. I don't like people calling - # to_sql on non-head nodes. This forces us to walk the AST until we - # can find a node that has a "relation" member. - # - # Maybe we should just use `Table.engine`? :'( - def to_sql - viz = Visitors::ToSql.new Table.engine - viz.accept self - end end end end -- cgit v1.2.3