Sha256: 333aff92376d4101c46ee77548d6a381d232495a7f0af40c0a8f610c99880d9b

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

if defined?(ActiveJob)
  class ActivityNotification::NotifyJob < ActivityNotification.config.parent_job.constantize
    queue_as ActivityNotification.config.active_job_queue
  
    def perform(target_type, notifiable, options = {})
      ActivityNotification::Notification.notify(target_type, 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_job.rb
activity_notification-1.7.0 app/jobs/activity_notification/notify_job.rb