Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-11-20 17:29:47 +0300
committerGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-08 10:43:08 +0300
commit4beba7494b096f2540b19017bb7c1c8e91679135 (patch)
tree5d60117bbb28660aa9504a2df9abb109f3c8989d /app/mailers
parente2f937ce22e6b0eb458bbdb3fa93b06d80ecfd21 (diff)
Improve Messagee::RepositoryPush
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/projects.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index c303e5a1a9c..bedadb583c7 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -65,20 +65,20 @@ module Emails
@project = repository_push.project
@current_user = @author = repository_push.author
- @reverse_compare = repository_push.reverse_compare
@compare = repository_push.compare
@ref_name = repository_push.ref_name
@ref_type = repository_push.ref_type
@action = repository_push.action
@action_name = repository_push.action_name
- @disable_diffs = repository_push.disable_diffs
@commits = repository_push.commits
@diffs = repository_push.diffs
@target_url = repository_push.target_url
+ @disable_diffs = repository_push.disable_diffs?
+ @reverse_compare = repository_push.reverse_compare?
@disable_footer = true
mail(from: sender(repository_push.author_id,
- repository_push.send_from_committer_email),
+ repository_push.send_from_committer_email?),
reply_to: repository_push.reply_to,
to: repository_push.recipient,
subject: repository_push.subject)