Associations' dynamic finders fail with :order depends on :include

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.


PGP.sig (186 Bytes)

I’ve re-submitted the ticket on LH: