2019-11-20 16:49:39 -07:00
|
|
|
class InactivityMailer < ApplicationMailer
|
|
|
|
attr_reader :user
|
2019-11-21 12:57:19 -07:00
|
|
|
SUBJECT = "[ACTION REQUIRED] Your FarmBot account " \
|
|
|
|
"will be deleted due to inactivity unless you login"
|
2019-11-20 16:49:39 -07:00
|
|
|
ORDER = { 1 => "First", 2 => "Second", 3 => "Final" }
|
|
|
|
|
|
|
|
def send_warning(user)
|
|
|
|
@user = user
|
|
|
|
mail to: user.email, subject: SUBJECT
|
|
|
|
end
|
|
|
|
end
|