1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Mention generators

This commit is contained in:
Jonas Nicklas 2012-11-19 11:05:20 +01:00
parent 9fdf72fc67
commit 713d07dde9

View file

@ -189,6 +189,14 @@ policies. Use `alias_method` to make some permissions behave the same as
others. Inherit from a base set of permissions. Use metaprogramming if you
really have to. The options are endless.
## Generator
Use the supplied generator to generate policies:
``` sh
rails g pundit:policy post
```
## Closed systems
In many applications, only logged in users are really able to do anything. If