From 4e076b03b6312b928a845f9a31288d10d7243338 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 29 Mar 2019 16:01:45 -0700 Subject: Add `ActiveRecord::Relation#extract_associated` for extracting associated record (#35784) * Add `ActiveRecord::Relation#extract_associated` for extracting associated records from a relation --- activerecord/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'activerecord/CHANGELOG.md') 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: -- cgit v1.2.3