summaryrefslogtreecommitdiff
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorHiroyuki Sato <sathiroyuki@gmail.com>2017-07-23 21:43:32 +0900
committerHiroyuki Sato <sathiroyuki@gmail.com>2017-07-23 21:43:32 +0900
commitdf65334ecadbc426a535237211a4d8eec53f52c0 (patch)
tree8312d4cac72946879304a346ee17b2b342d0e1e8 /app/models/wiki_page.rb
parent7ff9008f3e533f2e0442c7a07ef1c67c119822ea (diff)
downloadgitlab-ce-df65334ecadbc426a535237211a4d8eec53f52c0.tar.gz
Refactor: use keyword arguments for optional parameters
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index fa70b69f02f..12f12674e56 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -192,7 +192,7 @@ class WikiPage
#
# Returns the String SHA1 of the newly created page
# or False if the save was unsuccessful.
- def update(new_content = "", format = :markdown, message = nil, last_commit_sha = nil)
+ def update(new_content, format: :markdown, message: nil, last_commit_sha: nil)
@attributes[:content] = new_content
@attributes[:format] = format