aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/binary.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-27 13:12:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-27 13:12:15 -0700
commit77fa5fa5f7cc21824edb5b1c1ebccd58f92e982b (patch)
tree80c71416e19948b7e0c4c3b9aacd36672ab62d1d /lib/arel/nodes/binary.rb
parentec998ae9a6aeda09ad64bb94a50ac8b9fccd246d (diff)
downloadrails-77fa5fa5f7cc21824edb5b1c1ebccd58f92e982b.tar.gz
rails-77fa5fa5f7cc21824edb5b1c1ebccd58f92e982b.tar.bz2
rails-77fa5fa5f7cc21824edb5b1c1ebccd58f92e982b.zip
to_sql on nodes may be passed an engine
Diffstat (limited to 'lib/arel/nodes/binary.rb')
-rw-r--r--lib/arel/nodes/binary.rb10
1 files changed, 0 insertions, 10 deletions
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