diff options
Diffstat (limited to 'lib/arel/relations/aggregation.rb')
-rw-r--r-- | lib/arel/relations/aggregation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/relations/aggregation.rb b/lib/arel/relations/aggregation.rb index a6f40be786..9a34ea5d89 100644 --- a/lib/arel/relations/aggregation.rb +++ b/lib/arel/relations/aggregation.rb @@ -19,8 +19,8 @@ module Arel end def ==(other) - Aggregation == other.class and - self.relation == other.relation + Aggregation === other and + self.relation == other.relation end end |