aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-08-09 14:19:48 +0530
committerGitHub <noreply@github.com>2016-08-09 14:19:48 +0530
commit67d0c9ee93100dbdcafd20b0632e5bef6735888e (patch)
treef0265a2e018c8ea81aa834474237d74a6ccfe4a2 /guides
parentc5fb8b18fe8590e67aa8498fedbf2637621a87f3 (diff)
parent0ee88bf1e780bb36e5c7b0237c43edf79c10bcff (diff)
downloadrails-67d0c9ee93100dbdcafd20b0632e5bef6735888e.tar.gz
rails-67d0c9ee93100dbdcafd20b0632e5bef6735888e.tar.bz2
rails-67d0c9ee93100dbdcafd20b0632e5bef6735888e.zip
Merge pull request #24476 from vipulnsward/24314-eagerloading-doc-update
Document know limitation about using `references` in conjunction with custom select clauses [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_querying.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 8ffd0d033d..6f941d0e4e 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -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
------