summaryrefslogtreecommitdiff
path: root/app/presenters/issue_presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/issue_presenter.rb')
-rw-r--r--app/presenters/issue_presenter.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/presenters/issue_presenter.rb b/app/presenters/issue_presenter.rb
new file mode 100644
index 00000000000..c12a202efbc
--- /dev/null
+++ b/app/presenters/issue_presenter.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class IssuePresenter < Gitlab::View::Presenter::Delegated
+ presents :issue
+
+ def web_url
+ Gitlab::UrlBuilder.build(issue)
+ end
+end