Sha256: fbb2993c5c23f9d123743646b69d90780e4898033d45899714a5b82eaf15013b

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
exception_notification-4.4.0 lib/exception_notifier/notifier.rb