Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/issue_presenter.rb')
-rw-r--r--app/presenters/issue_presenter.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/presenters/issue_presenter.rb b/app/presenters/issue_presenter.rb
index 3d55b00ac3b..004813d0374 100644
--- a/app/presenters/issue_presenter.rb
+++ b/app/presenters/issue_presenter.rb
@@ -4,20 +4,14 @@ class IssuePresenter < Gitlab::View::Presenter::Delegated
presents :issue
def web_url
- url_builder.url
+ url_builder.build(issue)
end
def issue_path
- url_builder.issue_path(issue)
+ url_builder.build(issue, only_path: true)
end
def subscribed?
issue.subscribed?(current_user, issue.project)
end
-
- private
-
- def url_builder
- @url_builder ||= Gitlab::UrlBuilder.new(issue)
- end
end