diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 14:45:38 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 14:45:38 -0800 |
commit | 99ae19edd38e5cbb87e827dd28607d3b1cbbb0b7 (patch) | |
tree | 5cf2182094e3be8e7de02a1370875efe9fb3a3d9 /lib/arel | |
parent | 2d320e366a586fa9869080950e4c27f4aad55a5a (diff) | |
download | rails-99ae19edd38e5cbb87e827dd28607d3b1cbbb0b7.tar.gz rails-99ae19edd38e5cbb87e827dd28607d3b1cbbb0b7.tar.bz2 rails-99ae19edd38e5cbb87e827dd28607d3b1cbbb0b7.zip |
factory method for creating ON nodes
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/factory_methods.rb | 4 |
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 |