2018-04-05 12:36:29 +02:00
|
|
|
class Administrateurs::ActivateBeforeExpirationJob < ApplicationJob
|
|
|
|
queue_as :cron
|
|
|
|
|
|
|
|
def perform(*args)
|
2018-05-03 18:31:05 +02:00
|
|
|
Administrateur.inactive.where(created_at: 3.days.ago.all_day).each do |a|
|
2018-05-03 18:30:40 +02:00
|
|
|
a.remind_invitation!
|
2018-04-05 12:36:29 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|