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.

http://dev.rubyonrails.org/ticket/11562

Brandon

PGP.sig (186 Bytes)

I’ve re-submitted the ticket on LH:
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/287

Brandon