Re:Rails 3.1 beta 1 released
by pdelgallego on Thursday May 05, 2011 @03:26AM
(#2516519)
Care to explain? I haven't hear about it.
[ Parent
| on HN ]
The IdentityMap makes sure that there is only 1 ActiveRecord instance for a given row in the database.
This basically means that calling Article.find(3) and Comment.where(:article_id => 3).first.article both return the same instance.
http://edgerails.info/articles/what-s-new-in-edge-rails/2011... is a good synopsis of IdentityMap.