module ExceptionNotification::Notifiable::ClassMethods

Public Instance Methods

be_silent_for_exception?(exception) click to toggle source
# File lib/exception_notification/notifiable.rb, line 35
def be_silent_for_exception?(exception)
  self.notifiable_silent_exceptions.respond_to?(:any?) && self.notifiable_silent_exceptions.any? {|klass| klass === exception }
end
exception_data(deliverer = nil) click to toggle source

set the exception_data deliverer OR retrieve the exception_data

# File lib/exception_notification/notifiable.rb, line 27
def exception_data(deliverer = nil)
  if deliverer
    write_inheritable_attribute(:exception_data, deliverer)
  else
    read_inheritable_attribute(:exception_data)
  end
end