diff options
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| |