diff options
author | wendy0402 <wendykurniawan92@gmail.com> | 2017-07-23 15:19:10 +0700 |
---|---|---|
committer | wendy0402 <wendykurniawan92@gmail.com> | 2017-08-03 07:38:11 +0700 |
commit | 29be4e0f58622aea146aa8c362eb30c08b082839 (patch) | |
tree | 891c69a2f8795a9d40528a37203936436e9014b2 /app/models/project_wiki.rb | |
parent | 43c015472b5f85f7f345c825687a562f4cb3a13d (diff) | |
download | gitlab-ce-29be4e0f58622aea146aa8c362eb30c08b082839.tar.gz |
Allow wiki pages to be renamed in the UI
Diffstat (limited to 'app/models/project_wiki.rb')
-rw-r--r-- | app/models/project_wiki.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb index e8929a35836..698fdf7a20c 100644 --- a/app/models/project_wiki.rb +++ b/app/models/project_wiki.rb @@ -113,10 +113,10 @@ class ProjectWiki return false end - def update_page(page, content, format = :markdown, message = nil) + def update_page(page, content:, title: nil, format: :markdown, message: nil) commit = commit_details(:updated, message, page.title) - wiki.update_page(page, page.name, format.to_sym, content, commit) + wiki.update_page(page, title || page.name, format.to_sym, content, commit) update_project_activity end |