Class: ExpiredSpWorker

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

Instance Method Summary collapse

Instance Method Details

#performObject



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

def perform
  expired_sp_s = ServicePack.expired
  return if expired_sp_s.count.zero?
  ServicePacksMailer.expired_email(ServicePack.expired)
end