Class: SpiffMonthlyUpdateWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/spiff_monthly_update_worker.rb

Instance Method Summary collapse

Instance Method Details

#performObject



6
7
8
9
10
11
12
13
# File 'app/workers/spiff_monthly_update_worker.rb', line 6

def perform
  Spiff.active.each do |spiff|
    spiff.spiff_enrollments.each do |se|
      @job_name = "Send spiff monthly update email for spiff enrollment id: #{se.id}"
      se.send_monthly_update_email
    end
  end
end