aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/true.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/true.rb')
-rw-r--r--lib/arel/nodes/true.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/arel/nodes/true.rb b/lib/arel/nodes/true.rb
new file mode 100644
index 0000000000..82f20837f8
--- /dev/null
+++ b/lib/arel/nodes/true.rb
@@ -0,0 +1,17 @@
+module Arel
+ module Nodes
+ class True < Arel::Nodes::Node
+ def not
+ False.new
+ end
+
+ def or right
+ self
+ end
+
+ def and right
+ right
+ end
+ end
+ end
+end