rails/rails — pull request #16788 by codeodor (2014-09-03 13:47:50+00:00)
Title: Skip StatementCache for eager loaded collection associations

(Fixes #16761)

Eagerly loaded collections are ignored by the StatementCache, which causes errors when the queries they generate reference columns that were not eagerly loaded.

This commit skips the creation of the StatementCache as a fix for these scenarios.