Sha256: 34b9c474c491d1becd26f743a064b153fd520869e0f75f124ddc1daa39226838

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true

require 'active_support/deprecation'

module ExceptionNotifier
  class Notifier
    def self.exception_notification(env, exception, options = {})
      ActiveSupport::Deprecation.warn(
        'Please use ExceptionNotifier.notify_exception(exception, options.merge(env: env)).'
      )
      ExceptionNotifier.registered_exception_notifier(:email).create_email(exception, options.merge(env: env))
    end

    def self.background_exception_notification(exception, options = {})
      ActiveSupport::Deprecation.warn 'Please use ExceptionNotifier.notify_exception(exception, options).'
      ExceptionNotifier.registered_exception_notifier(:email).create_email(exception, options)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exception_notification-4.5.0 lib/exception_notifier/notifier.rb
exception_notification-4.4.3 lib/exception_notifier/notifier.rb
exception_notification-4.4.1 lib/exception_notifier/notifier.rb