summaryrefslogtreecommitdiff
path: root/app/services/wiki_pages
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/services/wiki_pages
parent7ff9008f3e533f2e0442c7a07ef1c67c119822ea (diff)
downloadgitlab-ce-df65334ecadbc426a535237211a4d8eec53f52c0.tar.gz
Refactor: use keyword arguments for optional parameters
Diffstat (limited to 'app/services/wiki_pages')
-rw-r--r--app/services/wiki_pages/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/wiki_pages/update_service.rb b/app/services/wiki_pages/update_service.rb
index 1046bb3be01..c628e6781af 100644
--- a/app/services/wiki_pages/update_service.rb
+++ b/app/services/wiki_pages/update_service.rb
@@ -1,7 +1,7 @@
module WikiPages
class UpdateService < WikiPages::BaseService
def execute(page)
- if page.update(@params[:content], @params[:format], @params[:message], @params[:last_commit_sha])
+ if page.update(@params[:content], format: @params[:format], message: @params[:message], last_commit_sha: @params[:last_commit_sha])
execute_hooks(page, 'update')
end