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

Fix: Extensions aren't loaded in development/test #21

Merged

Conversation

natematykiewicz
Copy link
Contributor

PR #19 previously loaded the associated object class when the has_object was defined, so that extensions would get run. It seems like that code got lost in a rebase. So now, extensions only run on boot if eager loading is enabled (which it is in production). Otherwise they aren't loaded until the first time the associated object gets used.

RE: #19 (comment)

PR kaspth#19 previously loaded the associated object class when the has_object
was defined, so that extensions would get run. It seems like that code
got lost in a rebase. So now, extensions only run on boot if eager
loading is enabled (which it is in production). Otherwise they aren't
loaded until the first time the associated object gets used.
@kaspth kaspth merged commit 41d6e9c into kaspth:main Jan 24, 2024
2 checks passed
@kaspth
Copy link
Owner

kaspth commented Jan 24, 2024

Ah, can't believe I missed that! Thank you for the PR. I'll ship a new gem release now.

@kaspth
Copy link
Owner

kaspth commented Jan 24, 2024

Done. v0.7.1 should is out now.

@natematykiewicz natematykiewicz deleted the eager_load_associated_object_class branch January 24, 2024 18:36
@natematykiewicz
Copy link
Contributor Author

No problem. I'm confident it got lost in that rebase that happened when you merged my PR and then your PR. Thanks for getting this released!

@kaspth
Copy link
Owner

kaspth commented Jan 24, 2024

Yeah, I think you're right about that

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.

None yet

2 participants