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

prevent autoloading concerns #398

Merged
merged 2 commits into from
Oct 30, 2020
Merged

prevent autoloading concerns #398

merged 2 commits into from
Oct 30, 2020

Conversation

10xSebastian
Copy link
Contributor

some applications were showing weird behavior when using concerns for lhs records.

e.g. causing

TypeError:
       superclass mismatch for class Place

Turns out that was because autoloading was autoloading those concerns, even though they are not lhs's business. ruby/rails takes care of autoloading them when loading the original records.

This PR fixes that issue. Unfortunately there was no way of adding a test for that (i've tried) but that issue has been described also by Dima here: #397

@10xSebastian 10xSebastian merged commit 866d4dc into master Oct 30, 2020
@10xSebastian 10xSebastian deleted the fix-autoloading branch October 30, 2020 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants