From f9b298b8e8379433a2656af9941597dd2b6a4aa6 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 21 Mar 2014 16:41:35 +0600 Subject: [PATCH] [#345] fix wiki path --- app/models/concerns/wiki.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/wiki.rb b/app/models/concerns/wiki.rb index 47e852dfe..851fac272 100644 --- a/app/models/concerns/wiki.rb +++ b/app/models/concerns/wiki.rb @@ -19,9 +19,9 @@ module Wiki def create_wiki if has_wiki && !FileTest.exist?(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"), - {name: owner.name, email: owner.email, message: 'Initial commit'}) + { name: owner.name, email: owner.email, message: 'Initial commit' }) end end