summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-11-23 20:25:49 +0000
committerGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-08 08:43:09 +0100
commit360a96a299397cbb5f8b15f916a9efd5962ff6be (patch)
tree63b4917f1ba23cfd1112bdcf8195f49814c259d4 /app/mailers
parentd835fbc79f6cd6f17fc7472af48074805622a573 (diff)
downloadgitlab-ce-360a96a299397cbb5f8b15f916a9efd5962ff6be.tar.gz
Fix specs by adding forgotten instance variable
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/projects.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index 35015ca34f8..b96418679bd 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -63,6 +63,9 @@ module Emails
@message =
Gitlab::Email::Message::RepositoryPush.new(self, project_id, recipient, opts)
+ # used in notify layout
+ @target_url = @message.target_url
+
mail(from: sender(@message.author_id, @message.send_from_committer_email?),
reply_to: @message.reply_to,
to: @message.recipient,