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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/factory_methods.rb b/lib/arel/factory_methods.rb
index 8fcb78069f..e45cc21170 100644
--- a/lib/arel/factory_methods.rb
+++ b/lib/arel/factory_methods.rb
@@ -9,5 +9,9 @@ module Arel
def create_string_join from, to
create_join from, to, nil, Nodes::StringJoin
end
+
+ def create_and clauses
+ Nodes::And.new clauses
+ end
end
end