I wanted to point out a bug in Trac that was opened a couple months ago. When using dynamic finders on an association, the eager loading is ignored, which raises an error if the eagerly-loaded association is used in the conditions or order.
I've updated the patch to work with edge rails. Please review and apply.
http://dev.rubyonrails.org/ticket/11562
Brandon
PGP.sig (186 Bytes)