diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-29 14:26:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-29 14:26:07 -0700 |
commit | 4e3b99dad53a25dd369bef9b19ae1cb794ab3e73 (patch) | |
tree | 8ec694bd48282e704129e362921c4b87404fadf6 /lib/arel/algebra/relations/utilities/compound.rb | |
parent | dfe79da73e13d44294ce5b167d6519b394cefa1b (diff) | |
download | rails-4e3b99dad53a25dd369bef9b19ae1cb794ab3e73.tar.gz rails-4e3b99dad53a25dd369bef9b19ae1cb794ab3e73.tar.bz2 rails-4e3b99dad53a25dd369bef9b19ae1cb794ab3e73.zip |
initialize our instance variables
Diffstat (limited to 'lib/arel/algebra/relations/utilities/compound.rb')
-rw-r--r-- | lib/arel/algebra/relations/utilities/compound.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb index 451097b551..25f634ef78 100644 --- a/lib/arel/algebra/relations/utilities/compound.rb +++ b/lib/arel/algebra/relations/utilities/compound.rb @@ -8,8 +8,13 @@ module Arel :to => :relation def initialize relation - @relation = relation - @attributes = nil + @relation = relation + @attributes = nil + @wheres = nil + @groupings = nil + @orders = nil + @havings = nil + @projections = nil end [:wheres, :groupings, :orders, :havings, :projections].each do |operation_name| |