Allow changine of format in Wiki#update_page.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user