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 ActiveJob::Performs not being automatically extended #31

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

kaspth
Copy link
Owner

@kaspth kaspth commented Dec 13, 2024

ActiveSupport.on_load :active_job may not fire after the application has loaded (since it happens when Active Job is first mentioned and then it's loaded), which means any Associated Objects loaded would not have performs defined and we'd raise.

The short curcuit was to only inject performs if users were using Active Job, but it's too clever.

We're now being less clever and letting bundler load every gem first via deferring our extension to the others in config.after_initialize.

@kaspth kaspth self-assigned this Dec 13, 2024
@kaspth
Copy link
Owner Author

kaspth commented Dec 13, 2024

Ooops, we need to work with #14 too.

`ActiveSupport.on_load :active_job` may not fire after the application has loaded (since it happens when Active Job is first mentioned and then it's loaded),
which means any Associated Objects loaded would not have `performs` defined and we'd raise.

The short curcuit was to only inject performs if users were using Active Job, but it's too clever.
@kaspth kaspth force-pushed the fix-performs-integration-in-railtie branch from 58643ed to 0929279 Compare December 13, 2024 22:17
@kaspth kaspth merged commit a77dc05 into main Dec 13, 2024
2 checks passed
@kaspth kaspth deleted the fix-performs-integration-in-railtie branch December 13, 2024 22:18
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.

1 participant