aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/utilities/aggregation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/utilities/aggregation.rb')
-rw-r--r--lib/arel/relations/utilities/aggregation.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/arel/relations/utilities/aggregation.rb b/lib/arel/relations/utilities/aggregation.rb
index 66150bff0a..9f5ead8f86 100644
--- a/lib/arel/relations/utilities/aggregation.rb
+++ b/lib/arel/relations/utilities/aggregation.rb
@@ -1,11 +1,9 @@
module Arel
class Aggregation < Compound
+ attributes :relation
+ deriving :initialize, :==
include Recursion::BaseCase
- def initialize(relation)
- @relation = relation
- end
-
def wheres
[]
end
@@ -21,11 +19,6 @@ module Arel
def name
relation.name + '_aggregation'
end
-
- def ==(other)
- Aggregation === other and
- self.relation == other.relation
- end
end
class Relation