instance method
rescue_with_handler
Ruby on Rails 8.1.2
Since v2.2.3Signature
rescue_with_handler(exception)
Delegates to the class method, but uses the instance as the subject for rescue_from handlers (method calls, instance_exec blocks).
Parameters
-
exceptionreq
Source
# File activesupport/lib/active_support/rescuable.rb, line 166
def rescue_with_handler(exception)
self.class.rescue_with_handler exception, object: self
end
Defined in activesupport/lib/active_support/rescuable.rb line 166
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Rescuable