! NEED JOB REBOOT Move remind activation logic to user

This commit is contained in:
simon lehericey 2019-08-09 16:04:28 +02:00
parent dc816472e9
commit e3e6bc7689
6 changed files with 16 additions and 17 deletions

View file

@ -56,6 +56,11 @@ class User < ApplicationRecord
reset_password_token
end
def remind_invitation!
reset_password_token = set_reset_password_token
AdministrateurMailer.activate_before_expiration(self, reset_password_token).deliver_later
end
private