diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-16 15:08:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-16 15:08:32 +0000 |
commit | 10fd79745df7b572fc79fd84b58e818e64bf2571 (patch) | |
tree | a89151d08c7a13334843b3a6f9010c00acabcb2b /app/helpers/gitlab_routing_helper.rb | |
parent | 9bfdb5cf67ca45ac6d354e18168f5df12b60ccd2 (diff) | |
download | gitlab-ce-10fd79745df7b572fc79fd84b58e818e64bf2571.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/gitlab_routing_helper.rb')
-rw-r--r-- | app/helpers/gitlab_routing_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/gitlab_routing_helper.rb b/app/helpers/gitlab_routing_helper.rb index 52238f89887..8a9380f4771 100644 --- a/app/helpers/gitlab_routing_helper.rb +++ b/app/helpers/gitlab_routing_helper.rb @@ -245,6 +245,14 @@ module GitlabRoutingHelper end end + def gitlab_dashboard_snippets_path(snippet, *args) + if snippet.is_a?(ProjectSnippet) + project_snippets_path(snippet.project, *args) + else + dashboard_snippets_path + end + end + def gitlab_raw_snippet_path(snippet, *args) if snippet.is_a?(ProjectSnippet) raw_project_snippet_path(snippet.project, snippet, *args) |