Class: NotificationEmailWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/notification_email_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



6
7
8
9
10
# File 'app/workers/notification_email_worker.rb', line 6

def perform(id)
  return unless (notification = Notification.find(id))

  NotificationMailer.notify(notification).deliver
end