Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
read_attribute(:id)
returning the primary key
This commit deprecates `read_attribute(:id)` returning the primary key if the model's primary key is not the id column. Starting in Rails 7.2, `read_attribute(:id)` will always return the value of the id column. This commit also changes `read_attribute(:id)` for composite primary key models to return the value of the id column, not the composite primary key.
- Loading branch information
1 parent
dd6d931
commit ac83311
Showing
4 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters