aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/and.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/and.rb')
-rw-r--r--lib/arel/nodes/and.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/arel/nodes/and.rb b/lib/arel/nodes/and.rb
index b4443c3d27..0d0fb3ee82 100644
--- a/lib/arel/nodes/and.rb
+++ b/lib/arel/nodes/and.rb
@@ -18,6 +18,16 @@ module Arel
def right
children[1]
end
+
+ def hash
+ children.hash
+ end
+
+ def eql? other
+ self.class == other.class &&
+ self.children == other.children
+ end
+ alias :== :eql?
end
end
end