Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Generating .rbi file for an ActiveModel model #374

Open
xcskier56 opened this issue Sep 15, 2020 · 0 comments
Open

Generating .rbi file for an ActiveModel model #374

xcskier56 opened this issue Sep 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@xcskier56
Copy link
Contributor

Describe the bug:
I have a non-database backed model that is including ActiveModel::Model. When I run either bundle exec rails_rbi:all and/or bundle exec rails_rbi:models, no .rbi file is generated for my class.

Steps to reproduce:

  1. Create a non-ActiveRecord class in your models folder and have it include ActiveModel::Model
  2. Generate rbi files using bundle exec rails_rbi:all
  3. Note that no new rbi file is generated

Expected behavior:
It would generate a new rbi file

Versions:

  • Ruby: 2.6.6p146
  • Rails: 6.0.3.2
  • Sorbet: 0.5.5909
  • Sorbet-Rails: 0.7.1
@xcskier56 xcskier56 added the bug Something isn't working label Sep 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant