diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2017-07-23 21:43:32 +0900 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2017-07-23 21:43:32 +0900 |
commit | df65334ecadbc426a535237211a4d8eec53f52c0 (patch) | |
tree | 8312d4cac72946879304a346ee17b2b342d0e1e8 /app/services/wiki_pages | |
parent | 7ff9008f3e533f2e0442c7a07ef1c67c119822ea (diff) | |
download | gitlab-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.rb | 2 |
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 |