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

Use create_method_from_def to simplify CurrentAttributes compiler #1778

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Jan 25, 2024

This makes Tapioca less sensitive to changes in gem code.

In Core, classes that inherit from CurrentAttributes were having block params added to their attribute getter methods due to this change. This was later fixed in Rails, but it exposed this fragility.

Thanks for @paracycle for the suggested refactoring.

Co-authored-by: Emily Samp <emily.samp@shopify.com>
@andyw8 andyw8 marked this pull request as ready for review January 25, 2024 20:19
@andyw8 andyw8 requested a review from a team as a code owner January 25, 2024 20:19
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!

@andyw8 andyw8 merged commit e06bff9 into main Jan 25, 2024
33 checks passed
@andyw8 andyw8 deleted the andyw8/simplify-current-attributes-compiler branch January 25, 2024 20:46
@andyw8 andyw8 added the enhancement New feature or request label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants