Before Rails 6,
if we want to extract associated records from an
we would use
we want to fetch
subscriptions of some
The query would look as shown below.
ActiveRecord::Relation#extract_associated provides a shorthand to acheive same result and is more readable than former.
Here’s the relevant pull request for this change.