Class: TaxExemptionWorker
- Inherits:
-
Object
- Object
- TaxExemptionWorker
- Includes:
- Sidekiq::Job
- Defined in:
- app/workers/tax_exemption_worker.rb
Overview
Sidekiq worker: tax exemption.
Instance Method Summary collapse
-
#perform ⇒ Object
Runs the job.
Instance Method Details
#perform ⇒ Object
Runs the job.
10 11 12 13 |
# File 'app/workers/tax_exemption_worker.rb', line 10 def perform tax_exemptions = TaxExemption.where(expiration_date: ..1.month.from_now).where(expiration_notified: false) tax_exemptions.each(&:notify_expiration) end |