Sha256: 55bce8b16273c03eded77ffe2a0e0efdcef13c044683b5f9bb12a33c5b5c282e

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

if defined?(ActiveJob)
  class ActivityNotification::NotifyToJob < ActivityNotification.config.parent_job.constantize
    queue_as ActivityNotification.config.active_job_queue
  
    def perform(target, notifiable, options = {})
      ActivityNotification::Notification.notify_to(target, 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_to_job.rb
activity_notification-1.7.0 app/jobs/activity_notification/notify_to_job.rb