7 lines
210 B
Ruby
7 lines
210 B
Ruby
class Administrateurs::ActivateBeforeExpirationJob < ApplicationJob
|
|
queue_as :cron
|
|
|
|
def perform(*args)
|
|
Administrateur.inactive.where(created_at: 3.days.ago.all_day).each(&:remind_invitation!)
|
|
end
|
|
end
|