Use project with namespace in email subject
This commit is contained in:
parent
30d6370719
commit
e5ff5c2869
3 changed files with 7 additions and 7 deletions
|
@ -154,6 +154,6 @@ class Notify < ActionMailer::Base
|
|||
# >> subject('Lorem ipsum', 'Dolor sit amet')
|
||||
# => "GitLab | Lorem ipsum | Dolor sit amet"
|
||||
def subject(*extra)
|
||||
"GitLab | " << extra.join(' | ') << (@project ? " | #{@project.name}" : "")
|
||||
"GitLab | " << extra.join(' | ') << (@project ? " | #{@project.name_with_namespace}" : "")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue