Welcome to mirror list, hosted at ThFree Co, Russian Federation.

maintenance.rb « mailers « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ff5d4ac30cd77f96ac57feb2fec814a97b81b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class Maintenance < ApplicationMailer
  def account_removal_warning(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
end