Blog posts from
Rails 2.1 eager loading conditions hash bugfix
2008-09-24 22:15:00
1 comment
I've created Rails lighthouse ticket #1101 for a blatant 2.1.x bug breaking :including of associations that have :conditions hashes.
My patch is on the ticket. If you use it, please remember to +1 it so it gets merged.
Rails 2.1 eager loading doubleup bug
2008-09-27 16:07:00
I've created Rails lighthouse ticket #1110 for another bug in the new 2.1.x association preloading code that was causing some has_manys to get loaded with two copies of each record in the collection (and less seriously, double SQL loads of all types of collections).
The problem turned out to be triggered by associations that have :includes defined on them themselves when the :includes are also supplied in the find call. My patch is on the ticket. +1s welcome :).
