jnunemaker/mongomapper — pull request #429 by jnunemaker (2012-07-09 21:32:19+00:00)
Title: Identity map

The identity map needed an overhaul. Instead of opting in with a plugin, this makes it opt in with middleware.

Currently if you use the identity map, you need to make sure that you clear in the right places. Better than that, this pull request makes it so it is never on, unless you opt in for the specific places you want to use it (ie: web requests).

I'm testing against my apps, but if anyone using identity map could test their apps against this branch as well it would be appreciated.

This will require bumping the version again as I changed a ton of the methods. This moves the IM from per model to global on/off, which is the common use case and is more simple.