varvet/pundit

[Request] Generate policy file when using scaffolding

Aperta

#735 aperta il 9 mag 2022

 (4 commenti) (1 reazione) (0 assegnatari)Ruby (643 fork)batch import
good first issue

Metriche repository

Star
 (8501 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi,

It would be great if running

rails g scaffold Model
rails g controller Model

would actually generate an empty policy file that inherits from ApplicationPolicy.

As a bonus, for resources scaffolding, maybe we could implements all CRUD actions and defaults to false.

Guida contributor