Skip to content

Commit

Permalink
Merge pull request rails#49071 from HParker/backfill-relation-batchin…
Browse files Browse the repository at this point in the history
…g-changelog

Add changelog entry for batching using loaded relations
  • Loading branch information
p8 authored Aug 29, 2023
2 parents 2bc9e8c + 451053e commit 4f33e65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
* Allow batching methods to use already loaded relation if available

Calling batch methods on already loaded relations will use the records previously loaded instead of retrieving
them from the database again.

*Adam Hess*

* Deprecate `read_attribute(:id)` returning the primary key if the primary key is not `:id`.

Starting in Rails 7.2, `read_attribute(:id)` will return the value of the id column, regardless of the model's
Expand Down

0 comments on commit 4f33e65

Please sign in to comment.