diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-05-31 19:46:16 +0300 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-05-31 21:19:29 +0300 |
commit | 1285b0051705519488fbc7ac3bf8511864560ac9 (patch) | |
tree | 81453b674e1d3719d477573e6a13e98e0a2a4b5e /app/presenters | |
parent | b9798c157ac5973e9dd2b7ad95267014034a219f (diff) |
Added common fields to the IssueType
and allow passing of child_complexity to the
'resolver_complexity' metho
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/issue_presenter.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/presenters/issue_presenter.rb b/app/presenters/issue_presenter.rb index c12a202efbc..c9dc0dbf443 100644 --- a/app/presenters/issue_presenter.rb +++ b/app/presenters/issue_presenter.rb @@ -4,6 +4,16 @@ class IssuePresenter < Gitlab::View::Presenter::Delegated presents :issue def web_url - Gitlab::UrlBuilder.build(issue) + url_builder.url + end + + def issue_path + url_builder.issue_path(issue) + end + + private + + def url_builder + @url_builder ||= Gitlab::UrlBuilder.new(issue) end end |