Method: ActivityNotification::NotificationApi.notify_later
- Defined in:
- lib/activity_notification/apis/notification_api.rb
.notify_later(target_type, notifiable, options = {}) ⇒ Array<Notificaion>
Generates notifications to configured targets with notifiable model later by ActiveJob queue.
264 265 266 267 268 |
# File 'lib/activity_notification/apis/notification_api.rb', line 264 def notify_later(target_type, notifiable, = {}) target_type = target_type.to_s if target_type.is_a? Symbol .delete(:notify_later) ActivityNotification::NotifyJob.perform_later(target_type, notifiable, ) end |