diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-30 17:27:33 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-30 17:27:33 -0400 |
commit | 84a7675ea69b8bbd3e95a94fbcfad716daa77b36 (patch) | |
tree | 36b4bd7fdbabd9f27733669414ffc06f6dd1402b /lib | |
parent | 242bebc13483c281af8bd2e0e9f6d7346997481e (diff) | |
download | gitlab-ce-84a7675ea69b8bbd3e95a94fbcfad716daa77b36.tar.gz |
Remove title_for_issue helper
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown/issue_reference_filter.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/markdown/issue_reference_filter.rb b/lib/gitlab/markdown/issue_reference_filter.rb index 6812b933fef..1e885615163 100644 --- a/lib/gitlab/markdown/issue_reference_filter.rb +++ b/lib/gitlab/markdown/issue_reference_filter.rb @@ -52,7 +52,7 @@ module Gitlab url = url_for_issue(id, project, only_path: context[:only_path]) - title = escape_once("Issue: #{title_for_issue(id, project)}") + title = escape_once("Issue: #{issue.title}") klass = reference_class(:issue) %(<a href="#{url}" @@ -67,10 +67,6 @@ module Gitlab def url_for_issue(*args) IssuesHelper.url_for_issue(*args) end - - def title_for_issue(*args) - IssuesHelper.title_for_issue(*args) - end end end end |