From 4e3b99dad53a25dd369bef9b19ae1cb794ab3e73 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 29 Jul 2010 14:26:07 -0700 Subject: initialize our instance variables --- lib/arel/algebra/relations/utilities/compound.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') 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| -- cgit v1.2.3