Class: TaxExemptionWorker

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

Overview

Sidekiq worker: tax exemption.

Instance Method Summary collapse

Instance Method Details

#performObject



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

def perform
  tax_exemptions = TaxExemption.where(expiration_date: ..1.month.from_now).where(expiration_notified: false)
  tax_exemptions.each(&:notify_expiration)
end