zdennis/activerecord-import — pull request #63 by dougo (2012-09-03 06:51:27+00:00)
Title: Set persisted status after synchronizing

From the doc and test comments, I concluded that this was the correct behavior (i.e. that an in-memory instance should be considered persisted after synchronizing it). Let me know if not!

Also, I don't understand what was intended by the other doc example for `:synchronize`, so I don't know how to fix it. In particular, `columns` and `values` are assigned but not used, and then `posts` are re-imported, so presumably they would have new primary keys, and thus synchronizing `post` would fail. It seems like the only way you could use `:synchronize` without also using `:synchronize_keys` is when you're explicitly assigning the primary key, i.e. not using autoincrement.

Thanks!
--Doug