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