[#345] fix wiki path

This commit is contained in:
Alexander Machehin 2014-03-21 16:41:35 +06:00
parent 197c33195a
commit f9b298b8e8
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ module Wiki
def create_wiki def create_wiki
if has_wiki && !FileTest.exist?(wiki_path) if has_wiki && !FileTest.exist?(wiki_path)
Grit::Repo.init_bare(wiki_path) Grit::Repo.init_bare(wiki_path)
wiki = Gollum::Wiki.new(wiki_path, {base_path: Rails.application.routes.url_helpers.project_wiki_index_path(owner, self)}) wiki = Gollum::Wiki.new(wiki_path, { base_path: Rails.application.routes.url_helpers.project_wiki_index_path(self) })
wiki.write_page('Home', :markdown, I18n.t("wiki.seed.welcome_content"), wiki.write_page('Home', :markdown, I18n.t("wiki.seed.welcome_content"),
{name: owner.name, email: owner.email, message: 'Initial commit'}) { name: owner.name, email: owner.email, message: 'Initial commit' })
end end
end end