class ActiveSupport::ErrorReporter
def disable(subscriber)
This can be helpful for error reporting service integrations, when they wish
duration of the block. You may pass in the subscriber itself, or its class.
Prevent a subscriber from being notified of errors for the
def disable(subscriber) disabled_subscribers = (ActiveSupport::IsolatedExecutionState[self] ||= []) disabled_subscribers << subscriber begin yield ensure disabled_subscribers.delete(subscriber) end end