aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/factory_methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/factory_methods.rb')
-rw-r--r--lib/arel/factory_methods.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/arel/factory_methods.rb b/lib/arel/factory_methods.rb
index 9fd0878ada..3b16feae10 100644
--- a/lib/arel/factory_methods.rb
+++ b/lib/arel/factory_methods.rb
@@ -2,6 +2,14 @@ module Arel
###
# Methods for creating various nodes
module FactoryMethods
+ def create_true
+ Arel::Nodes::True.new
+ end
+
+ def create_false
+ Arel::Nodes::False.new
+ end
+
def create_table_alias relation, name
Nodes::TableAlias.new(relation, name)
end