Use project with namespace in email subject

This commit is contained in:
Dmitriy Zaporozhets 2012-12-31 18:22:44 +02:00
parent 30d6370719
commit e5ff5c2869
3 changed files with 7 additions and 7 deletions

View file

@ -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