diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-07 18:09:28 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-07 23:12:18 +0400 |
commit | 23b4a2e72118afeb691fa92891ca79cbc85b9c4f (patch) | |
tree | 7d9e6c9b858b4a5177e7ff17d2770bd828674ff8 /app/services/merge_requests/base_service.rb | |
parent | bbc52b000008c9020d2a38dafc09ff3341a69cae (diff) |
Factor issue and merge request services
Diffstat (limited to 'app/services/merge_requests/base_service.rb')
-rw-r--r-- | app/services/merge_requests/base_service.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/app/services/merge_requests/base_service.rb b/app/services/merge_requests/base_service.rb index 2907f3587da..694994001b0 100644 --- a/app/services/merge_requests/base_service.rb +++ b/app/services/merge_requests/base_service.rb @@ -1,11 +1,5 @@ module MergeRequests - class BaseService < ::BaseService - - private - - def create_assignee_note(merge_request) - Note.create_assignee_change_note(merge_request, merge_request.project, current_user, merge_request.assignee) - end + class BaseService < ::IssuableBaseService def create_note(merge_request) Note.create_status_change_note(merge_request, merge_request.target_project, current_user, merge_request.state, nil) @@ -16,9 +10,5 @@ module MergeRequests merge_request.project.execute_hooks(merge_request.to_hook_data, :merge_request_hooks) end end - - def create_milestone_note(merge_request) - Note.create_milestone_change_note(merge_request, merge_request.project, current_user, merge_request.milestone) - end end end |