softwaregravy/lancaster

View on GitHub
app/workers/notification_worker.rb

Summary

Maintainability
A
0 mins
Test Coverage
class NotificationWorker
  include Sidekiq::Worker
  sidekiq_options queue: :notifications

  def perform(subscription_id, notification_id)
    sub = Subscription.find(subscription_id)
    notification = Notification.find(notification_id)
    sub.send_notification(notification)
  end
end