mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Clarify struct option as requested in #98
This commit is contained in:
parent
3f5e66d08a
commit
2591e1028c
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ end
|
|||
```
|
||||
|
||||
As you can see, this is just a plain Ruby class. As a convenience, we can inherit
|
||||
from Struct:
|
||||
from Struct or use Struct.new to define the policy class:
|
||||
|
||||
``` ruby
|
||||
PostPolicy = Struct.new(:user, :post) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue