zdennis/activerecord-import — Issue #35: #import should dup column_names
Author: jfirebaugh
Created: 2011-12-13 21:39:01+00:00
State: open

`array_of_attributes` is dup'ed, but not `column_names`, leading to a couple cases where the array passed by the user could unexpectedly be mutated. For example, I was passing the same array for column names and the `:on_duplicate_key_update` option, which led to the `:updated_at` column name getting specified twice in the SQL statement.