aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-27 14:19:59 -0700
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 15:44:12 -0400
commit2fe585328d6a24df310d3e60059c9c7b05b64bac (patch)
tree546895f0729a612ec3e004ee08ddb1b703b43b47 /lib/arel/algebra
parentb7f58db57a535806e0cfc3057fbab80ca43b1a53 (diff)
downloadrails-2fe585328d6a24df310d3e60059c9c7b05b64bac.tar.gz
rails-2fe585328d6a24df310d3e60059c9c7b05b64bac.tar.bz2
rails-2fe585328d6a24df310d3e60059c9c7b05b64bac.zip
performing in memory joins
Diffstat (limited to 'lib/arel/algebra')
-rw-r--r--lib/arel/algebra/relations/row.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/relations/row.rb b/lib/arel/algebra/relations/row.rb
index 2d63498452..3731dd9696 100644
--- a/lib/arel/algebra/relations/row.rb
+++ b/lib/arel/algebra/relations/row.rb
@@ -17,5 +17,9 @@ module Arel
def bind(relation)
Row.new(relation, tuple)
end
+
+ def combine(other, relation)
+ Row.new(relation, tuple + other.tuple)
+ end
end
end \ No newline at end of file