[Request] Generate policy file when using scaffolding
Author: ghostCreated May 9, 2022Updated Aug 15, 2026
Labelsgood first issue
Hi,
It would be great if running
rails g scaffold Model
rails g controller Modelwould 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.
Source: varvet/pundit