News for hackers. Stuff that matters.
Re:Rails 3.1 beta 1 released by MartinMond on Thursday May 05, 2011 @12:55AM (#2516233)
IMO the most important improvement is the IdentityMap
Re:Rails 3.1 beta 1 released by keeran on Thursday May 05, 2011 @08:16AM (#2517017)
I'm very much looking forward to making use of the associations rewrite by Jon Leighton (http://jonathanleighton.com/).

Nested has-many:through relationships are a go! :)

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.
Re:Rails 3.1 beta 1 released by tomeric on Thursday May 05, 2011 @03:39AM (#2516542)
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.

Re:Rails 3.1 beta 1 released by ctide on Thursday May 05, 2011 @03:56AM (#2516565)
Re:Rails 3.1 beta 1 released by fullmoon on Thursday May 05, 2011 @03:01AM (#2516472)
Oh, it is in finally? Exciting!
Re:Rails 3.1 beta 1 released by johnb on Thursday May 05, 2011 @03:33AM (#2516531)
I know this isn't reddit, and I know it isn't welcome on news.yc... but

... that's what she said.