Blog posts from   

January February March April May June July August September October November December // 2008
January February March April May June July August September October November December // 2009
January February March April May June July August September October November December // 2011
January February March April May June July August September October November December // 2015

Rails 2.1 eager loading conditions hash bugfix

will.bryant

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

will.bryant

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 :).