summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordixpac <dino.onex@gmail.com>2017-02-09 20:32:09 +0100
committerdixpac <dino.onex@gmail.com>2017-02-10 18:22:18 +0100
commitfa2339641f52688ba2465f4c602c1de36fe5b353 (patch)
tree0102c261cba0da263b7d6fee90a03fe267b2eec0 /lib
parent6cbfe1396d6627f156f109f414215db426b846ad (diff)
downloadgitlab-ce-fa2339641f52688ba2465f4c602c1de36fe5b353.tar.gz
Rename Files::DeleteService to Files::DestroyService
Reason for renaming is to comply with naming convention of services in codebase.
Diffstat (limited to 'lib')
-rw-r--r--lib/api/files.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index c58472de578..2ecdd747c8e 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -117,7 +117,7 @@ module API
authorize! :push_code, user_project
file_params = declared_params(include_missing: false)
- result = ::Files::DeleteService.new(user_project, current_user, commit_params(file_params)).execute
+ result = ::Files::DestroyService.new(user_project, current_user, commit_params(file_params)).execute
if result[:status] == :success
status(200)