summaryrefslogtreecommitdiff
path: root/app/helpers/gitlab/wiki_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/gitlab/wiki_helper.rb')
-rw-r--r--app/helpers/gitlab/wiki_helper.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/helpers/gitlab/wiki_helper.rb b/app/helpers/gitlab/wiki_helper.rb
deleted file mode 100644
index 02a1daf0019..00000000000
--- a/app/helpers/gitlab/wiki_helper.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-module Gitlab
- module WikiHelper
- # Rails v4.1.9+ escapes all model IDs, converting slashes into %2F. The
- # only way around this is to implement our own path generators.
- def namespace_project_wiki_path(namespace, project, wiki_page, *args)
- slug =
- case wiki_page
- when Symbol
- wiki_page
- when String
- wiki_page
- else
- wiki_page.slug
- end
- namespace_project_path(namespace, project) + "/wikis/#{slug}"
- end
-
- def edit_namespace_project_wiki_path(namespace, project, wiki_page, *args)
- namespace_project_wiki_path(namespace, project, wiki_page) + '/edit'
- end
-
- def history_namespace_project_wiki_path(namespace, project, wiki_page, *args)
- namespace_project_wiki_path(namespace, project, wiki_page) + '/history'
- end
- end
-end