summaryrefslogtreecommitdiff
path: root/app/presenters/snippet_presenter.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /app/presenters/snippet_presenter.rb
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
downloadgitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'app/presenters/snippet_presenter.rb')
-rw-r--r--app/presenters/snippet_presenter.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/presenters/snippet_presenter.rb b/app/presenters/snippet_presenter.rb
index 62a90025ce1..d814c4404b6 100644
--- a/app/presenters/snippet_presenter.rb
+++ b/app/presenters/snippet_presenter.rb
@@ -3,12 +3,8 @@
class SnippetPresenter < Gitlab::View::Presenter::Delegated
presents :snippet
- def web_url
- Gitlab::UrlBuilder.build(snippet)
- end
-
def raw_url
- Gitlab::UrlBuilder.build(snippet, raw: true)
+ url_builder.build(snippet, raw: true)
end
def ssh_url_to_repo