Skip to content

Mark ActiveJob::Callbacks as alive#748

Merged
Morriar merged 2 commits into
mainfrom
at-active-job-callbacks
Jun 6, 2025
Merged

Mark ActiveJob::Callbacks as alive#748
Morriar merged 2 commits into
mainfrom
at-active-job-callbacks

Conversation

@Morriar

@Morriar Morriar commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor 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