mirror of
https://github.com/jbranchaud/til
synced 2026-01-17 05:58:01 +00:00
Round out one of the sentences
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
The
|
The
|
||||||
[`rescue_from`](http://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html)
|
[`rescue_from`](http://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html)
|
||||||
method, provided by `ActiveSupport`, is a handy way to provide a catch-all
|
method, provided by `ActiveSupport`, is a handy way to provide a catch-all
|
||||||
response to a particular exception.
|
response to a particular exception in Rails controllers.
|
||||||
|
|
||||||
For instance, if many of the controllers in your application raise a
|
For instance, if many of the controllers in your application raise a
|
||||||
`User::NotAuthorized` error for unauthorized requests, the
|
`User::NotAuthorized` error for unauthorized requests, the
|
||||||
|
|||||||
Reference in New Issue
Block a user