gitlab-org--gitlab-foss/app/mailers/devise_mailer.rb
Luke Bennett 974e71a9c5
Resolve CE/EE diffs in app/views/layouts view
Part of single codebase changes.
2019-05-11 23:38:41 +01:00

20 lines
502 B
Ruby

# frozen_string_literal: true
class DeviseMailer < Devise::Mailer
default from: "#{Gitlab.config.gitlab.email_display_name} <#{Gitlab.config.gitlab.email_from}>"
default reply_to: Gitlab.config.gitlab.email_reply_to
layout 'mailer/devise'
helper EmailsHelper
helper ApplicationHelper
protected
def subject_for(key)
subject = [super]
subject << Gitlab.config.gitlab.email_subject_suffix if Gitlab.config.gitlab.email_subject_suffix.present?
subject.join(' | ')
end
end