Class: ActivityNotification::NotifyAllJob
- Inherits:
-
Object
- Object
- ActivityNotification::NotifyAllJob
- Defined in:
- app/jobs/activity_notification/notify_all_job.rb
Overview
Job to generate notifications by ActivityNotification::Notification#notify_all method.
Instance Method Summary collapse
-
#perform(targets, notifiable, options = {}) ⇒ Array<Notificaion>
Generates notifications to specified targets with ActiveJob.
Instance Method Details
#perform(targets, notifiable, options = {}) ⇒ Array<Notificaion>
Generates notifications to specified targets with ActiveJob.
21 22 23 |
# File 'app/jobs/activity_notification/notify_all_job.rb', line 21 def perform(targets, notifiable, = {}) ActivityNotification::Notification.notify_all(targets, notifiable, ) end |