change determine conditions
This commit is contained in:
parent
76463c2cb4
commit
867b9b4347
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class DeviseMailer < Devise::Mailer
|
|||
|
||||
def subject_for(key)
|
||||
subject = super
|
||||
subject << " | #{Gitlab.config.gitlab.email_subject_suffix}" if Gitlab.config.gitlab.email_subject_suffix.length > 0
|
||||
subject << " | #{Gitlab.config.gitlab.email_subject_suffix}" if Gitlab.config.gitlab.email_subject_suffix.present?
|
||||
subject
|
||||
end
|
||||
end
|
||||
|
|
|
@ -92,7 +92,7 @@ class Notify < BaseMailer
|
|||
subject = ""
|
||||
subject << "#{@project.name} | " if @project
|
||||
subject << extra.join(' | ') if extra.present?
|
||||
subject << " | #{Gitlab.config.gitlab.email_subject_suffix}" if Gitlab.config.gitlab.email_subject_suffix.length > 0
|
||||
subject << " | #{Gitlab.config.gitlab.email_subject_suffix}" if Gitlab.config.gitlab.email_subject_suffix.present?
|
||||
subject
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue