Method: ActivityNotification::Notifiable#notify
- Defined in:
- lib/activity_notification/models/concerns/notifiable.rb
#notify(target_type, options = {}) ⇒ Array<Notificaion> Also known as: notify_now
Generates notifications to configured targets with notifiable model. This method calls NotificationApi#notify internally with self notifiable instance.
280 281 282 |
# File 'lib/activity_notification/models/concerns/notifiable.rb', line 280 def notify(target_type, = {}) Notification.notify(target_type, self, ) end |