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

Sorbet support for Devise Controllers #5651

Open
samarti opened this issue Nov 1, 2023 · 0 comments
Open

Sorbet support for Devise Controllers #5651

samarti opened this issue Nov 1, 2023 · 0 comments

Comments

@samarti
Copy link

samarti commented Nov 1, 2023

Environment

  • Ruby 3.1.1
  • Rails 6.1.7
  • Devise 4.9
  • Sorbet 0.5

Current behavior

I've recently started a new Rails 6 project with Ruby Sorbet (https://sorbet.org/). However, I haven't been able to generate RBI (Ruby Interface files) for Devise library controllers (Sessions Controller, Registrations Controller). The only automatically .rbi files generated are for Devise::Models::Authenticatable, Devise::Mailer and Devise::FailureApp

For generating these files I've been using Tapioca (https://github.com/Shopify/tapioca), which has the option of manually generating them (shims) but it's not ideal. So my questions are:

  • Is Sorbet fully supported by Devise?
  • Are there any samples of manually generated .rbi files for static type check support?

Expected behavior

Tapioca should be able to generated .rbi files for Devise controllers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant