Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting from Rails 6.0, read_attribute will use the memoized `primary_key` if it detects that the attribute name is `id`. Since the `primary key` may have been changed to `hid` in this case because of `find` overload, the new behavior may break relations where `id` is still the correct attribute to read for foreign key Fix: #181
- Loading branch information