Allow changine of format in Wiki#update_page.

This commit is contained in:
Tom Preston-Werner
2010-07-13 15:24:12 -07:00
parent 77791940a5
commit 90ba8476b2
5 changed files with 101 additions and 26 deletions
+3 -1
View File
@@ -54,8 +54,10 @@ module Precious
name = params[:name]
wiki = Gollum::Wiki.new($path)
page = wiki.page(name)
format = params[:format].intern
wiki.update_page(page, format, params[:content], commit_message)
wiki.update_page(page, params[:content], commit_message)
redirect "/#{name}"
end