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:
parent
ed4914a4f7
commit
c0291490a2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue