rails/rails — pull request #12538 by mikecmpbll (2013-10-14 20:35:34+00:00)
Title: Don't ignore joins from association scopes in eagerload

Pull request for https://github.com/rails/rails/issues/12492

It'll need a test adding; I was hoping someone else might be able to help me with that. This fixes my example in the original issue and the test suite doesn't break!