mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Correct typo (#456)
This commit is contained in:
parent
8b2d638103
commit
0e3a11cf3e
1 changed files with 2 additions and 2 deletions
|
@ -293,8 +293,8 @@ you to add the `authorize` call manually to each controller action, it's really
|
|||
easy to miss one.
|
||||
|
||||
Thankfully, Pundit has a handy feature which reminds you in case you forget.
|
||||
Pundit tracks whether you have called `authorize` anywhere in you controller
|
||||
action. Pundit also adds a method to you controllers called
|
||||
Pundit tracks whether you have called `authorize` anywhere in your controller
|
||||
action. Pundit also adds a method to your controllers called
|
||||
`verify_authorized`. This method will raise an exception if `authorize` has not
|
||||
yet been called. You should run this method in an `after_action` hook to ensure
|
||||
that you haven't forgotten to authorize the action. For example:
|
||||
|
|
Loading…
Reference in a new issue