diff options
Diffstat (limited to 'lib/active_relation/relations/selection.rb')
-rw-r--r-- | lib/active_relation/relations/selection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/relations/selection.rb b/lib/active_relation/relations/selection.rb index 3ecea059d5..5f1726d381 100644 --- a/lib/active_relation/relations/selection.rb +++ b/lib/active_relation/relations/selection.rb @@ -8,7 +8,7 @@ module ActiveRelation end def ==(other) - relation == other.relation and predicate == other.predicate + self.class == other.class and relation == other.relation and predicate == other.predicate end def qualify |