2018-08-15 17:45:57 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-05-01 20:12:54 -04:00
|
|
|
class DeviseMailer < Devise::Mailer
|
2015-05-06 10:39:18 -04:00
|
|
|
default from: "#{Gitlab.config.gitlab.email_display_name} <#{Gitlab.config.gitlab.email_from}>"
|
|
|
|
default reply_to: Gitlab.config.gitlab.email_reply_to
|
2016-03-22 22:20:47 -04:00
|
|
|
|
2017-05-10 11:37:47 -04:00
|
|
|
layout 'mailer/devise'
|
2017-04-05 10:38:10 -04:00
|
|
|
|
|
|
|
helper EmailsHelper
|
2019-05-08 01:26:10 -04:00
|
|
|
helper ApplicationHelper
|
2016-09-30 05:46:37 -04:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def subject_for(key)
|
2018-08-15 17:45:57 -04:00
|
|
|
subject = [super]
|
|
|
|
subject << Gitlab.config.gitlab.email_subject_suffix if Gitlab.config.gitlab.email_subject_suffix.present?
|
|
|
|
|
|
|
|
subject.join(' | ')
|
2016-09-30 05:46:37 -04:00
|
|
|
end
|
2015-05-01 20:12:54 -04:00
|
|
|
end
|