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