aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-02 09:48:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-02 09:48:00 -0700
commita7e0d6e85a9d4562a3e16e7fdc2dbd0719ae36ed (patch)
tree832bc1ca5fe33c938453199b211f4eb603fb8f61
parentb41d3609be49f74c840a7d9001e7dc2d75296155 (diff)
downloadrails-a7e0d6e85a9d4562a3e16e7fdc2dbd0719ae36ed.tar.gz
rails-a7e0d6e85a9d4562a3e16e7fdc2dbd0719ae36ed.tar.bz2
rails-a7e0d6e85a9d4562a3e16e7fdc2dbd0719ae36ed.zip
unfactoring JOIN to_sql
-rw-r--r--lib/arel/algebra/relations/operations/join.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/relations/operations/join.rb b/lib/arel/algebra/relations/operations/join.rb
index bfb7727313..35374972be 100644
--- a/lib/arel/algebra/relations/operations/join.rb
+++ b/lib/arel/algebra/relations/operations/join.rb
@@ -69,6 +69,10 @@ module Arel
end
result
end
+
+ def to_sql(formatter = nil)
+ compiler.select_sql
+ end
end
class InnerJoin < Join