diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-21 21:31:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-21 21:31:45 -0700 |
commit | 4dade480a1d19b1343de8c68b94f74a1237c396a (patch) | |
tree | ae158cd08f32855eacfcab575970329c2cd9987d /lib | |
parent | aca58b2360f7459623499018e0a19febac926267 (diff) | |
download | rails-4dade480a1d19b1343de8c68b94f74a1237c396a.tar.gz rails-4dade480a1d19b1343de8c68b94f74a1237c396a.tar.bz2 rails-4dade480a1d19b1343de8c68b94f74a1237c396a.zip |
added a factory method for creating values nodes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/insert_manager.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/arel/insert_manager.rb b/lib/arel/insert_manager.rb index f62f36369b..d6a11b7be0 100644 --- a/lib/arel/insert_manager.rb +++ b/lib/arel/insert_manager.rb @@ -27,8 +27,12 @@ module Arel @ast.columns << column values << value end - @ast.values = Nodes::Values.new values, @ast.columns + @ast.values = create_values values, @ast.columns end end + + def create_values values, columns + Nodes::Values.new values, columns + end end end |