From 360a96a299397cbb5f8b15f916a9efd5962ff6be Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 23 Nov 2015 20:25:49 +0000 Subject: Fix specs by adding forgotten instance variable --- app/mailers/emails/projects.rb | 3 +++ 1 file changed, 3 insertions(+) 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, -- cgit v1.2.1