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

Fix a broken link in README.md

The link to documentation about `rescue_from` used to point to #rescue_from instead of #rescue-from.
This commit is contained in:
Ulysse Carion 2013-11-11 09:30:05 -08:00
parent ed4914a4f7
commit c0291490a2

View file

@ -270,7 +270,7 @@ end
## Rescuing a denied Authorization in Rails
Pundit raises a `Pundit::NotAuthorizedError` you can [rescue_from](http://guides.rubyonrails.org/action_controller_overview.html#rescue_from) in your `ApplicationController`. You can customize the `user_not_authorized` method in every controller.
Pundit raises a `Pundit::NotAuthorizedError` you can [rescue_from](http://guides.rubyonrails.org/action_controller_overview.html#rescue-from) in your `ApplicationController`. You can customize the `user_not_authorized` method in every controller.
```ruby
class ApplicationController < ActionController::Base