summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorRobb Kidd <robb@thekidds.org>2012-05-15 19:25:21 -0400
committerRobb Kidd <robb@thekidds.org>2012-05-15 22:37:34 -0400
commit2d124d9496ea2bca71a25a29a4301cc718b5001c (patch)
tree7d7bcdb78a9abe3d8f0c0d2c6e7692a81b6dfb4c /app/mailers
parent41c00a20a97e7ee3764822249d4bedc538c515aa (diff)
downloadgitlab-ce-2d124d9496ea2bca71a25a29a4301cc718b5001c.tar.gz
Add delegate for project's name on Note.
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index bb46ba04f08..a4ffd97fb7c 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -24,28 +24,28 @@ class Notify < ActionMailer::Base
def note_wall_email(recipient_id, note_id)
recipient = User.find(recipient_id)
@note = Note.find(note_id)
- mail(:to => recipient.email, :subject => "gitlab | #{@note.project.name} ")
+ mail(:to => recipient.email, :subject => "gitlab | #{@note.project_name} ")
end
def note_commit_email(recipient_id, note_id)
recipient = User.find(recipient_id)
@note = Note.find(note_id)
@commit = @note.target
- mail(:to => recipient.email, :subject => "gitlab | note for commit | #{@note.project.name} ")
+ mail(:to => recipient.email, :subject => "gitlab | note for commit | #{@note.project_name} ")
end
def note_merge_request_email(recipient_id, note_id)
recipient = User.find(recipient_id)
@note = Note.find(note_id)
@merge_request = @note.noteable
- mail(:to => recipient.email, :subject => "gitlab | note for merge request | #{@note.project.name} ")
+ mail(:to => recipient.email, :subject => "gitlab | note for merge request | #{@note.project_name} ")
end
def note_issue_email(recipient_id, note_id)
recipient = User.find(recipient_id)
@note = Note.find(note_id)
@issue = @note.noteable
- mail(:to => recipient.email, :subject => "gitlab | note for issue #{@issue.id} | #{@note.project.name} ")
+ mail(:to => recipient.email, :subject => "gitlab | note for issue #{@issue.id} | #{@note.project_name} ")
end
def new_merge_request_email(merge_request)