varvet/pundit

[Request] Generate policy file when using scaffolding

オープン

#735 opened on 2022/05/09

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)Ruby (643 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (8,501 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド