summaryrefslogtreecommitdiff
path: root/app/services/delete_branch_service.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-13 11:57:56 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-13 12:02:58 +0100
commit07d05d2df7d1b79406232e91a7354e0c7fd1877a (patch)
tree63a83b51f7d1488f66d48b438d87c247e0f05893 /app/services/delete_branch_service.rb
parent529188e4788991961796b1b6131389072ee61efb (diff)
downloadgitlab-ce-07d05d2df7d1b79406232e91a7354e0c7fd1877a.tar.gz
Move all event creation to EventCreateService.
Diffstat (limited to 'app/services/delete_branch_service.rb')
-rw-r--r--app/services/delete_branch_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/delete_branch_service.rb b/app/services/delete_branch_service.rb
index cae6327fe72..c26aee2b0aa 100644
--- a/app/services/delete_branch_service.rb
+++ b/app/services/delete_branch_service.rb
@@ -25,7 +25,7 @@ class DeleteBranchService < BaseService
end
if repository.rm_branch(branch_name)
- Event.create_ref_event(project, current_user, branch, 'rm')
+ EventCreateService.new.push_ref(project, current_user, branch, 'rm')
success('Branch was removed')
else
return error('Failed to remove branch')