aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2019-03-29 16:01:45 -0700
committerGitHub <noreply@github.com>2019-03-29 16:01:45 -0700
commit4e076b03b6312b928a845f9a31288d10d7243338 (patch)
tree0c3a4a9316ee19626dcdaabec7c33e355ba03c56 /activerecord/CHANGELOG.md
parent406d3a926cfcd3724f8002f70346aad95eed4a8c (diff)
downloadrails-4e076b03b6312b928a845f9a31288d10d7243338.tar.gz
rails-4e076b03b6312b928a845f9a31288d10d7243338.tar.bz2
rails-4e076b03b6312b928a845f9a31288d10d7243338.zip
Add `ActiveRecord::Relation#extract_associated` for extracting associated record (#35784)
* Add `ActiveRecord::Relation#extract_associated` for extracting associated records from a relation
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index df781b4f1e..690d487a09 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,12 @@
+* Add `ActiveRecord::Relation#extract_associated` for extracting associated records from a relation.
+
+ ```
+ account.memberships.extract_associated(:user)
+ # => Returns collection of User records
+ ```
+
+ *DHH*
+
* Add `ActiveRecord::Relation#annotate` for adding SQL comments to its queries.
For example: