Skip to content

Commit

Permalink
Merge pull request #40984 from alecclarke/update-active-support-rescu…
Browse files Browse the repository at this point in the history
…able-docs

Clarify use of rescue_from [ci skip]
  • Loading branch information
rafaelfranca committed Dec 30, 2020
1 parent 6a0b88e commit 91fe488
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activesupport/lib/active_support/rescuable.rb
Expand Up @@ -14,12 +14,12 @@ module Rescuable
end

module ClassMethods
# Rescue exceptions raised in controller actions.
# Registers exception classes with a handler to be called by <tt>rescue_with_handler</tt>.
#
# <tt>rescue_from</tt> receives a series of exception classes or class
# names, and a trailing <tt>:with</tt> option with the name of a method
# or a Proc object to be called to handle them. Alternatively a block can
# be given.
# names, and an exception handler specified by a trailing <tt>:with</tt>
# option containing the name of a method or a Proc object. Alternatively, a block
# can be given as the handler.
#
# Handlers that take one argument will be called with the exception, so
# that the exception can be inspected when dealing with it.
Expand Down

0 comments on commit 91fe488

Please sign in to comment.