Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/fix historical relation 181 #182

Merged
merged 4 commits into from
Nov 27, 2022

Conversation

tagliala
Copy link
Member

No description provided.

@tagliala tagliala force-pushed the bugfix/fix-historical-relation-181 branch from 070ac7d to a801f63 Compare October 14, 2022 23:00
tagliala and others added 3 commits November 27, 2022 10:55
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
@tagliala tagliala force-pushed the bugfix/fix-historical-relation-181 branch from 4d3c60b to 0f76b07 Compare November 27, 2022 09:56
@tagliala tagliala marked this pull request as ready for review November 27, 2022 10:02
@tagliala tagliala merged commit 1b42ef1 into master Nov 27, 2022
@tagliala tagliala deleted the bugfix/fix-historical-relation-181 branch November 27, 2022 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants