File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
activesupport/lib/active_support Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ module Rescuable
14
14
end
15
15
16
16
module ClassMethods
17
- # Rescue exceptions raised in controller actions .
17
+ # Registers exception classes with a handler to be called by <tt>rescue_with_handler</tt> .
18
18
#
19
19
# <tt>rescue_from</tt> receives a series of exception classes or class
20
- # names, and a trailing <tt>:with</tt> option with the name of a method
21
- # or a Proc object to be called to handle them . Alternatively a block can
22
- # be given.
20
+ # names, and an exception handler specified by a trailing <tt>:with</tt>
21
+ # option containing the name of a method or a Proc object . Alternatively, a block
22
+ # can be given as the handler .
23
23
#
24
24
# Handlers that take one argument will be called with the exception, so
25
25
# that the exception can be inspected when dealing with it.
You can’t perform that action at this time.
0 commit comments