From 99ae19edd38e5cbb87e827dd28607d3b1cbbb0b7 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 10 Dec 2010 14:45:38 -0800 Subject: factory method for creating ON nodes --- lib/arel/factory_methods.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3