diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-05-31 11:46:16 -0500 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-05-31 13:19:29 -0500 |
commit | 1285b0051705519488fbc7ac3bf8511864560ac9 (patch) | |
tree | 81453b674e1d3719d477573e6a13e98e0a2a4b5e /app/presenters | |
parent | b9798c157ac5973e9dd2b7ad95267014034a219f (diff) | |
download | gitlab-ce-1285b0051705519488fbc7ac3bf8511864560ac9.tar.gz |
Added common fields to the IssueType10795-add-epic-tree-BE-epic-graphql-support
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 |