aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/utilities/compound.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-20 16:40:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-20 16:40:23 -0700
commit108a4531fdb63c33e77fc98145a4520acb1af980 (patch)
tree14c10f41913bf853e67104138fc87b7444b94bca /lib/arel/algebra/relations/utilities/compound.rb
parent33a9cdc9963489759b75102dd0df48b5a1987369 (diff)
downloadrails-108a4531fdb63c33e77fc98145a4520acb1af980.tar.gz
rails-108a4531fdb63c33e77fc98145a4520acb1af980.tar.bz2
rails-108a4531fdb63c33e77fc98145a4520acb1af980.zip
inheritence meow meow meow
Diffstat (limited to 'lib/arel/algebra/relations/utilities/compound.rb')
-rw-r--r--lib/arel/algebra/relations/utilities/compound.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb
index 9f653bbafb..42ac519907 100644
--- a/lib/arel/algebra/relations/utilities/compound.rb
+++ b/lib/arel/algebra/relations/utilities/compound.rb
@@ -13,6 +13,10 @@ module Arel
@requires
end
+ def initialize relation
+ @relation = relation
+ end
+
[:wheres, :groupings, :orders, :havings, :projections].each do |operation_name|
class_eval <<-OPERATION, __FILE__, __LINE__
def #{operation_name}