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

Merge pull request #14 from ayrton/master

Typo fix
This commit is contained in:
Jonas Nicklas 2013-02-26 05:23:04 -08:00
commit f6455c4100

View file

@ -98,7 +98,7 @@ and the given record. It then infers from the action name, that it should call
raise "not authorized" unless PostPolicy.new(current_user, @post).create?
```
You can pass a second arguent to `authorize` if the name of the permission you
You can pass a second argument to `authorize` if the name of the permission you
want to check doesn't match the action name. For example:
``` ruby