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 AASM compiler's global callback method signatures #1944

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

tubaxenor
Copy link
Contributor

Motivation

AASM global callbacks takes splat argument as first argument instead of a nilable symbol: https://github.com/aasm/aasm/blob/0e03746a2b86558ee1bf7bd7db873938cbb3b29b/lib/aasm/base.rb#L145-L171

Implementation

Change AASM compiler to use correct params definition.

Tests

Added accordingly.

@tubaxenor tubaxenor requested a review from a team as a code owner July 4, 2024 03:49
@tubaxenor tubaxenor changed the title fix: fix AASM compiler's global callback method signatures Fix AASM compiler's global callback method signatures Jul 4, 2024
Co-authored-by: Ufuk Kayserilioglu <[email protected]>
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.

Thanks for the update, if you can sign the CLA and update the test expectations, this should be good to merge.

spec/tapioca/dsl/compilers/aasm_spec.rb Outdated Show resolved Hide resolved
@tubaxenor
Copy link
Contributor Author

I have signed the CLA!

@KaanOzkan KaanOzkan merged commit c6abadd into Shopify:main Jul 8, 2024
16 checks passed
@tubaxenor tubaxenor deleted the xc-aasm-private-methods-change branch July 9, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants