varvet/pundit

[Request] Generate policy file when using scaffolding

开放

#735 创建于 2022年5月9日

 (5 条评论) (1 个反应) (0 位负责人)Ruby (643 个派生)batch import
good first issue

仓库指标

星标
 (8,501 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南