Skip to content

Commit 451053e

Browse files
committed
Add changelog entry for batching using loaded relations
This backfills a changelog entry for PR rails#48876. This is potentially something Rails users should be aware of as in very specific situations it can be a change in behavior
1 parent 735cba5 commit 451053e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

activerecord/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
* Allow batching methods to use already loaded relation if available
2+
3+
Calling batch methods on already loaded relations will use the records previously loaded instead of retrieving
4+
them from the database again.
5+
6+
*Adam Hess*
7+
18
* Deprecate `read_attribute(:id)` returning the primary key if the primary key is not `:id`.
29

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

0 commit comments

Comments
 (0)