demarches-normaliennes/app/jobs/administrateurs/activate_before_expiration_job.rb

8 lines
210 B
Ruby
Raw Normal View History

class Administrateurs::ActivateBeforeExpirationJob < ApplicationJob
queue_as :cron
def perform(*args)
2018-10-01 14:20:14 +02:00
Administrateur.inactive.where(created_at: 3.days.ago.all_day).each(&:remind_invitation!)
end
end