Method: ActiveSupport::Rescuable#rescue_with_handler

Defined in:
activesupport/lib/active_support/rescuable.rb

#rescue_with_handler(exception) ⇒ Object

Delegates to the class method, but uses the instance as the subject for rescue_from handlers (method calls, instance_exec blocks).



166
167
168
# File 'activesupport/lib/active_support/rescuable.rb', line 166

def rescue_with_handler(exception)
  self.class.rescue_with_handler exception, object: self
end