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 /app/controllers/projects/blob_controller.rb | |
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 'app/controllers/projects/blob_controller.rb')
-rw-r--r-- | app/controllers/projects/blob_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb index 4c39fe98028..a1db856dcfb 100644 --- a/app/controllers/projects/blob_controller.rb +++ b/app/controllers/projects/blob_controller.rb @@ -61,10 +61,10 @@ class Projects::BlobController < Projects::ApplicationController end def destroy - create_commit(Files::DeleteService, success_notice: "The file has been successfully deleted.", - success_path: namespace_project_tree_path(@project.namespace, @project, @target_branch), - failure_view: :show, - failure_path: namespace_project_blob_path(@project.namespace, @project, @id)) + create_commit(Files::DestroyService, success_notice: "The file has been successfully deleted.", + success_path: namespace_project_tree_path(@project.namespace, @project, @target_branch), + failure_view: :show, + failure_path: namespace_project_blob_path(@project.namespace, @project, @id)) end def diff |