rails/rails — pull request #4134 by jhllnd (2011-12-22 16:28:46+00:00)
Title: Simplifing the identity map middleware and fix a bug.

https://github.com/rails/rails/blob/master/activerecord/lib/active_record/identity_map.rb#L142

The identity map will only be cleared if the close method was called. But as far as i know, close will not always be called. This patch would fix that.

I have also simplified the middleware, there is no reason to create the extra body class.