aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/true.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/nodes/true.rb')
-rw-r--r--activerecord/lib/arel/nodes/true.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/activerecord/lib/arel/nodes/true.rb b/activerecord/lib/arel/nodes/true.rb
new file mode 100644
index 0000000000..c891012969
--- /dev/null
+++ b/activerecord/lib/arel/nodes/true.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module Arel # :nodoc: all
+ module Nodes
+ class True < Arel::Nodes::NodeExpression
+ def hash
+ self.class.hash
+ end
+
+ def eql?(other)
+ self.class == other.class
+ end
+ alias :== :eql?
+ end
+ end
+end