Class: Maintenance

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/maintenance.rb

Instance Method Summary collapse

Instance Method Details

#account_removal_warning(user) ⇒ Object


4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/mailers/maintenance.rb', line 4

def (user)
  @user = user
  @login_url  = new_user_session_url
  @pod_url = AppConfig.environment.url
  @after_days = AppConfig.settings.maintenance.remove_old_users.after_days.to_s
  @remove_after = @user.remove_after

  I18n.with_locale(@user.language) do
    mail(to: @user.email, subject: I18n.t("notifier.remove_old_user.subject")) do |format|
      format.text
      format.html
    end
  end
end