1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24476 from vipulnsward/24314-eagerloading-doc-update

Document know limitation about using `references` in conjunction with custom select clauses [ci skip]
This commit is contained in:
Vipul A M 2016-08-09 14:19:48 +05:30 committed by GitHub
commit 67d0c9ee93

View file

@ -1251,8 +1251,9 @@ articles, all the articles would still be loaded. By using `joins` (an INNER
JOIN), the join conditions **must** match, otherwise no records will be
returned.
NOTE: If an association is eager loaded as part of a join, any fields from a custom select clause will not present be on the loaded models.
This is because it is ambiguous whether they should appear on the parent record, or the child.
Scopes
------