diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-13 11:57:56 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-13 12:02:58 +0100 |
commit | 07d05d2df7d1b79406232e91a7354e0c7fd1877a (patch) | |
tree | 63a83b51f7d1488f66d48b438d87c247e0f05893 /app/services/delete_branch_service.rb | |
parent | 529188e4788991961796b1b6131389072ee61efb (diff) | |
download | gitlab-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.rb | 2 |
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') |