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

Fixes little typo

This commit is contained in:
Ayrton De Craene 2013-02-26 14:21:31 +01:00
parent 1558490514
commit c898c4e0e5

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