Sha256: 04bb293086301e597e52b8f6886240bbaae01aafc6b6ece7c5122d04794509ae

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

if defined?(ActiveJob)
  class ActivityNotification::NotifyAllJob < ActivityNotification.config.parent_job.constantize
    queue_as ActivityNotification.config.active_job_queue
  
    def perform(targets, notifiable, options = {})
      ActivityNotification::Notification.notify_all(targets, notifiable, options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activity_notification-1.7.1 app/jobs/activity_notification/notify_all_job.rb
activity_notification-1.7.0 app/jobs/activity_notification/notify_all_job.rb