summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-10 11:51:36 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-10 13:39:31 +0100
commit383c56efa1882d9cab956de5b5b72e51691c3f0c (patch)
tree1eebe2c35351d44a9fa54f53658346f86d9566a3 /app/mailers
parente0caed91e2cd6b959f808139df7c40f3644f88fd (diff)
downloadgitlab-ce-383c56efa1882d9cab956de5b5b72e51691c3f0c.tar.gz
Use Gitlab::Git helper methods and constants as much as possible.
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index 9ea121d83a4..b55129de292 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -23,7 +23,7 @@ module Emails
@compare = compare
@commits = Commit.decorate(compare.commits)
@diffs = compare.diffs
- @branch = branch.gsub("refs/heads/", "")
+ @branch = Gitlab::Git.ref_name(branch)
@disable_diffs = disable_diffs
@subject = "[#{@project.path_with_namespace}][#{@branch}] "