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 belongs to preload 142 #150

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Conversation

tagliala
Copy link
Member

@tagliala tagliala commented Mar 21, 2022

Fix #142

@tagliala tagliala force-pushed the bugfix/fix-belongs-to-preload-142 branch from 5869a06 to 0794aea Compare March 21, 2022 17:56
The old behavior implemented to support Rails 7 tried to detect class
names based on association symbol. This was causing issues when
the association name did not match the ruby class

This commit fixes the old behavior

Fix: #142
@tagliala tagliala force-pushed the bugfix/fix-belongs-to-preload-142 branch from 0794aea to 33bdae7 Compare March 21, 2022 19:33
@tagliala tagliala marked this pull request as ready for review March 22, 2022 08:30
@tagliala tagliala merged commit 0a2ae52 into master Mar 22, 2022
@tagliala tagliala deleted the bugfix/fix-belongs-to-preload-142 branch March 22, 2022 08:30
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.

Rails 7: loading errors with includes of STI belongs_to
1 participant