Class: ExceptionNotifier::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_notifier/notifier.rb

Class Method Summary collapse

Class Method Details

.background_exception_notification(exception, options = {}) ⇒ Object



11
12
13
14
# File 'lib/exception_notifier/notifier.rb', line 11

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

.exception_notification(env, exception, options = {}) ⇒ Object



6
7
8
9
# File 'lib/exception_notifier/notifier.rb', line 6

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