mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Mention generators
This commit is contained in:
parent
9fdf72fc67
commit
713d07dde9
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue