BigW Consortium Gitlab

devise_mailer.rb 414 Bytes
Newer Older
1
class DeviseMailer < Devise::Mailer
2 3
  default from: "#{Gitlab.config.gitlab.email_display_name} <#{Gitlab.config.gitlab.email_from}>"
  default reply_to: Gitlab.config.gitlab.email_reply_to
4 5

  layout 'devise_mailer'
6 7 8 9 10

  protected

  def subject_for(key)
    subject = super
Fu Xu committed
11
    subject << " | #{Gitlab.config.gitlab.email_subject_suffix}" if Gitlab.config.gitlab.email_subject_suffix.present?
12 13
    subject
  end
14
end