diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-10 13:51:36 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-10 15:39:31 +0300 |
commit | 383c56efa1882d9cab956de5b5b72e51691c3f0c (patch) | |
tree | 1eebe2c35351d44a9fa54f53658346f86d9566a3 /app/mailers/emails | |
parent | e0caed91e2cd6b959f808139df7c40f3644f88fd (diff) |
Use Gitlab::Git helper methods and constants as much as possible.
Diffstat (limited to 'app/mailers/emails')
-rw-r--r-- | app/mailers/emails/projects.rb | 2 |
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}] " |