Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook into Rails generators (scaffold, model) to generate policy classes #785

Closed
joelzwarrington opened this issue Oct 9, 2023 · 3 comments

Comments

@joelzwarrington
Copy link

I would like pundit policies to be generated when I run Rails generators such as scaffold and model, instead of having to run rails generate pundit:policy post seperately.

I wouldn't mind working on something like this, just want to see if there's appetite for it!

@Burgestrand
Copy link
Member

Burgestrand commented Oct 16, 2023

That sounds nice. I don't personally use the generators, but I'm sure the reduced friction would be appreciated by those who do!

I'm sure the details are in here somewhere: https://guides.rubyonrails.org/generators.html

@Burgestrand
Copy link
Member

This looks like a duplicate of #735 😊

… so I'm closing this in favour of moving the topic there instead!

@Burgestrand Burgestrand closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
@Burgestrand
Copy link
Member

I feel GitHub is rather dismissive with "closed this as not planned" which is not really true, it just falls under the umbrella of "duplicate" 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants