Module: ExceptionNotification::Notifiable::ClassMethods
- Defined in:
- lib/exception_notification/notifiable.rb
Instance Method Summary collapse
- #exception_data(deliverer = self) ⇒ Object
- #skip_exception_notifications(boolean = true) ⇒ Object
- #skip_exception_notifications? ⇒ Boolean
Instance Method Details
#exception_data(deliverer = self) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/exception_notification/notifiable.rb', line 28 def exception_data(deliverer=self) if deliverer == self read_inheritable_attribute(:exception_data) else write_inheritable_attribute(:exception_data, deliverer) end end |
#skip_exception_notifications(boolean = true) ⇒ Object
36 37 38 |
# File 'lib/exception_notification/notifiable.rb', line 36 def skip_exception_notifications(boolean=true) write_inheritable_attribute(:skip_exception_notifications, boolean) end |
#skip_exception_notifications? ⇒ Boolean
40 41 42 |
# File 'lib/exception_notification/notifiable.rb', line 40 def skip_exception_notifications? read_inheritable_attribute(:skip_exception_notifications) end |