Class: ExceptionNotifier::Notifier
- Inherits:
-
Object
- Object
- ExceptionNotifier::Notifier
- Defined in:
- lib/exception_notifier/notifier.rb
Class Method Summary collapse
- .background_exception_notification(exception, options = {}) ⇒ Object
- .exception_notification(env, exception, options = {}) ⇒ Object
Class Method Details
.background_exception_notification(exception, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/exception_notifier/notifier.rb', line 14 def self.background_exception_notification(exception, = {}) ActiveSupport::Deprecation.warn "Please use ExceptionNotifier.notify_exception(exception, options)." ExceptionNotifier.registered_exception_notifier(:email).create_email(exception, ) end |
.exception_notification(env, exception, options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/exception_notifier/notifier.rb', line 7 def self.exception_notification(env, exception, = {}) ActiveSupport::Deprecation.warn( "Please use ExceptionNotifier.notify_exception(exception, options.merge(env: env))." ) ExceptionNotifier.registered_exception_notifier(:email).create_email(exception, .merge(env: env)) end |