diff options
author | dixpac <dino.onex@gmail.com> | 2017-02-09 20:32:09 +0100 |
---|---|---|
committer | dixpac <dino.onex@gmail.com> | 2017-02-10 18:22:18 +0100 |
commit | fa2339641f52688ba2465f4c602c1de36fe5b353 (patch) | |
tree | 0102c261cba0da263b7d6fee90a03fe267b2eec0 /lib | |
parent | 6cbfe1396d6627f156f109f414215db426b846ad (diff) | |
download | gitlab-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.rb | 2 |
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) |