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

Generator for ActiveJob::Base descendants #298

Merged
merged 1 commit into from May 12, 2021
Merged

Generator for ActiveJob::Base descendants #298

merged 1 commit into from May 12, 2021

Conversation

kddnewton
Copy link
Contributor

Motivation

Need this to properly type perform_later and perform_now methods, as their arguments change based on the signature of the perform method.

Implementation

Very similar to the ActionMailer one. If there's a perform method, it grabs the signature off of it and puts it onto the perform_now and perform_later methods.

Tests

Yup!

@Morriar Morriar requested a review from a team April 30, 2021 19:27
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

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

Nice work! 🚀

lib/tapioca/compilers/dsl/active_job.rb Show resolved Hide resolved
Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

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

Looks good, just a minor question from me.

lib/tapioca/compilers/dsl/active_job.rb Show resolved Hide resolved
lib/tapioca/compilers/dsl/active_job.rb Outdated Show resolved Hide resolved
Need this to properly type `perform_later` and `perform_now` methods, as their arguments change based on the signature of the `perform` method.
@paracycle paracycle merged commit 84bf565 into master May 12, 2021
@paracycle paracycle deleted the active-job branch May 12, 2021 13:05
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

3 participants