Class: Notifi::Notification
- Inherits:
-
Object
- Object
- Notifi::Notification
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/notifi/notification.rb
Instance Method Summary collapse
Instance Method Details
#fire_notification_event ⇒ Object
21 22 23 |
# File 'lib/notifi/notification.rb', line 21 def fire_notification_event self.subscriber.notification_event.call(self) if self.notification_event? end |
#notification_event? ⇒ Boolean
17 18 19 |
# File 'lib/notifi/notification.rb', line 17 def notification_event? self.subscriber && self.subscriber.notification_event end |