diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-02 03:57:56 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-02 09:29:27 +0300 |
commit | fbb891c8f3818b9aa17fadbb984ff7d33053c819 (patch) | |
tree | 4b4f76be3d2d7748973d200783da5ed6a457dc1b /app/helpers/wiki_helper.rb | |
parent | 308c6428aef2a46b0370a24d85a97b0e133283a8 (diff) |
Fix broken Wiki Page History
Closes #2104
Closes #1751
Closes #1592
Closes https://github.com/gitlabhq/gitlabhq/issues/9399
Diffstat (limited to 'app/helpers/wiki_helper.rb')
-rw-r--r-- | app/helpers/wiki_helper.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb deleted file mode 100644 index f8a96516e61..00000000000 --- a/app/helpers/wiki_helper.rb +++ /dev/null @@ -1,24 +0,0 @@ -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 |