1
0
Fork 0
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:
Wung S 2017-05-11 18:15:43 +05:30 committed by Thomas Klemm
parent 8b2d638103
commit 0e3a11cf3e

View file

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