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

Add Tapioca compiler for models with ejects_to defined #4

Open
maxveldink opened this issue Dec 22, 2022 · 0 comments
Open

Add Tapioca compiler for models with ejects_to defined #4

maxveldink opened this issue Dec 22, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@maxveldink
Copy link
Owner

When eject is called on an instance of an ActiveRecord model that defines ejects_to, Sorbet does not know the method exists. Further, we don't know what the return type should be, so we're forced to use the typed: false sigil.

Tapioca allows for custom compilers to generate RBIs for a project based on given conditions. We should add one for ejection_seat to give more type information.

@maxveldink maxveldink added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant