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:
commit
67d0c9ee93
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
------
|
||||
|
||||
|
|
Loading…
Reference in a new issue