aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e45cc21170..c9b6c3b791 100644
--- a/lib/arel/factory_methods.rb
+++ b/lib/arel/factory_methods.rb
@@ -13,5 +13,9 @@ module Arel
def create_and clauses
Nodes::And.new clauses
end
+
+ def create_on expr
+ Nodes::On.new expr
+ end
end
end