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

unconfirm_mailer.rb « mailers « background_migration « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c096dae0631a5d6af9b144da77192256122e24a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true
# rubocop:disable Style/Documentation

module Gitlab
  module BackgroundMigration
    module Mailers
      class UnconfirmMailer < ::Notify
        prepend_view_path(File.join(__dir__, 'views'))

        def unconfirm_notification_email(user)
          @user = user
          @verification_from_mail = Gitlab.config.gitlab.email_from

          mail(
            template_path: 'unconfirm_mailer',
            template_name: 'unconfirm_notification_email',
            to: @user.notification_email,
            subject: subject('GitLab email verification request')
          )
        end
      end
    end
  end
end