aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/primitives/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/primitives/attribute.rb')
-rw-r--r--lib/arel/primitives/attribute.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/arel/primitives/attribute.rb b/lib/arel/primitives/attribute.rb
index 011b751a1d..ca1d31ffcf 100644
--- a/lib/arel/primitives/attribute.rb
+++ b/lib/arel/primitives/attribute.rb
@@ -30,11 +30,11 @@ module Arel
end
def ==(other)
- Attribute == other.class and
- name == other.name and
- @alias == other.alias and
- ancestor == other.ancestor and
- relation == other.relation
+ Attribute === other and
+ name == other.name and
+ @alias == other.alias and
+ ancestor == other.ancestor and
+ relation == other.relation
end
def original_relation