Skip to content

Mark ActiveJob::Callbacks as alive #748

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

Merged
merged 2 commits into from
Jun 6, 2025
Merged

Mark ActiveJob::Callbacks as alive #748

merged 2 commits into from
Jun 6, 2025

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jun 3, 2025

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar requested a review from a team as a code owner June 3, 2025 19:30
@Morriar Morriar self-assigned this Jun 3, 2025
@Morriar Morriar added the bugfix Fix a bug label Jun 3, 2025
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
def on_send(send)
return unless send.recv.nil? && CALLBACKS.include?(send.name)

send.each_arg(Prism::SymbolNode) do |arg|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it probably accepts strings too if you want to be exhaustive

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find any occurrence using a String in our monolith. I'll stick to symbols for now, I can add strings support late 👍

@Morriar Morriar merged commit 0200e08 into main Jun 6, 2025
8 checks passed
@Morriar Morriar deleted the at-active-job-callbacks branch June 6, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants