Class: ActivityNotification::NotifyToJob
- Inherits:
-
Object
- Object
- ActivityNotification::NotifyToJob
- Defined in:
- app/jobs/activity_notification/notify_to_job.rb
Overview
Job to generate notifications by ActivityNotification::Notification#notify_to method.
Instance Method Summary collapse
-
#perform(target, notifiable, options = {}) ⇒ Notification
Generates notifications to one target with ActiveJob.
Instance Method Details
#perform(target, notifiable, options = {}) ⇒ Notification
Generates notifications to one target with ActiveJob.
21 22 23 |
# File 'app/jobs/activity_notification/notify_to_job.rb', line 21 def perform(target, notifiable, = {}) ActivityNotification::Notification.notify_to(target, notifiable, ) end |