1
0
Fork 0
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:
Thomas Klemm 2014-01-30 20:10:48 +01:00
parent 3f5e66d08a
commit 2591e1028c

View file

@ -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