No longer modify input array; deep clone it first #92

Open
wants to merge 1 commit into
from

Projects

None yet

2 participants

@demands

This pull request resolves issue #22.

If you call #import with an array of values, activerecord-import will currently modify that array with updated_at and created_at timestamps for each row. This change prevents the array you pass in from being modified.

@demands demands Prevent modification of input array.
Before this commit, if you called #import with an array of
values, activerecord-import would modify that array with
updated_at and created_at timestamps for each row. This
change prevents that from happening.
c864d38
@jkowens

This was included in #291 and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment