aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-16 17:27:16 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-16 17:27:25 -0700
commit8d46360cbd5e5ae650ac6d735f5a44f0f57b7aee (patch)
treec4c8c790207d5893faf79b553cdfa2b5c33ab1d6
parentae547dc139179720a814ae21f43f3e0aaad97c5c (diff)
downloadrails-8d46360cbd5e5ae650ac6d735f5a44f0f57b7aee.tar.gz
rails-8d46360cbd5e5ae650ac6d735f5a44f0f57b7aee.tar.bz2
rails-8d46360cbd5e5ae650ac6d735f5a44f0f57b7aee.zip
adding comment to myself
-rw-r--r--lib/arel/nodes/binary.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb
index 44204d91e0..4eccba2765 100644
--- a/lib/arel/nodes/binary.rb
+++ b/lib/arel/nodes/binary.rb
@@ -15,6 +15,8 @@ module Arel
# 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 left.relation.engine
viz.accept self