diff options
Diffstat (limited to 'lib/arel/predicates.rb')
-rw-r--r-- | lib/arel/predicates.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/predicates.rb b/lib/arel/predicates.rb index cad4969952..93c7ed0099 100644 --- a/lib/arel/predicates.rb +++ b/lib/arel/predicates.rb @@ -28,7 +28,7 @@ module Arel class Equality < Binary def ==(other) - self.class == other.class and + Equality == other.class and ((operand1 == other.operand1 and operand2 == other.operand2) or (operand1 == other.operand2 and operand2 == other.operand1)) end |