From fa2339641f52688ba2465f4c602c1de36fe5b353 Mon Sep 17 00:00:00 2001 From: dixpac Date: Thu, 9 Feb 2017 20:32:09 +0100 Subject: Rename Files::DeleteService to Files::DestroyService Reason for renaming is to comply with naming convention of services in codebase. --- lib/api/files.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/files.rb') 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) -- cgit v1.2.1