avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.52k stars 253 forks source link

When installing Avo detect if the app has a User model and create a resource for it. #1719

Closed adrianthedev closed 1 year ago

adrianthedev commented 1 year ago

Feature

From here.

Most apps have a User model. When you install Avo in an existing app it should detect that and generate a User resource automatically.

Current workarounds

Generate the resource manually.

Approach

Update the install generator to also run bin/rails generate avo:resource user.

FLX-0x00 commented 1 year ago

Note that such resources do not always use the name User. For rodauth, it is Account by default.

adrianthedev commented 1 year ago

That's a good point. Thanks! Maybe we could search for rodauth and Account as well and incorporate that too.