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

Don't reference any actions in JobScoped concern, as it might not exist #47

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Jan 31, 2024

Thanks to @excid3 for spotting this in #46!

In Rails 7.1, because of the new default for config.action_controller.raise_on_missing_callback_actions, the except option used in before_action for index raises an error for those controllers that don't have an index action. Let's just remove that and let the only controller with an index action using this concern opt-out of it explicitly.

@rosa rosa changed the title Don't reference any actions in SetJob concern, as it might not exist Don't reference any actions in JobScoped concern, as it might not exist Jan 31, 2024
Thanks to @excid3 for spotting this. In Rails 7.1, because of the new default
for `config.action_controller.raise_on_missing_callback_actions`, the except
option used in `before_action` for `index` raises an error for those controllers
that don't have an index action. Let's just remove that and let the only controller
with an index action using this concern opt-out of it explicitly.
@rosa rosa force-pushed the fix-unknown-action branch from e7f914d to cf7dbaf Compare January 31, 2024 14:41
@excid3
Copy link
Contributor

excid3 commented Jan 31, 2024

No problemo! This solution is what I was thinking too, good to see we're on the same wavelength! 🙌

@rosa rosa merged commit 36cb7bf into main Jan 31, 2024
1 of 2 checks passed
@rosa rosa deleted the fix-unknown-action branch January 31, 2024 14:45
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