summaryrefslogtreecommitdiff
path: root/app/services/issues/base_service.rb
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-07 16:09:28 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-07 21:12:18 +0200
commit23b4a2e72118afeb691fa92891ca79cbc85b9c4f (patch)
tree7d9e6c9b858b4a5177e7ff17d2770bd828674ff8 /app/services/issues/base_service.rb
parentbbc52b000008c9020d2a38dafc09ff3341a69cae (diff)
downloadgitlab-ce-23b4a2e72118afeb691fa92891ca79cbc85b9c4f.tar.gz
Factor issue and merge request services
Diffstat (limited to 'app/services/issues/base_service.rb')
-rw-r--r--app/services/issues/base_service.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/services/issues/base_service.rb b/app/services/issues/base_service.rb
index 71b9ffc3489..41948f226a6 100644
--- a/app/services/issues/base_service.rb
+++ b/app/services/issues/base_service.rb
@@ -1,21 +1,13 @@
module Issues
- class BaseService < ::BaseService
+ class BaseService < ::IssuableBaseService
private
- def create_assignee_note(issue)
- Note.create_assignee_change_note(issue, issue.project, current_user, issue.assignee)
- end
-
def execute_hooks(issue, action = 'open')
issue_data = issue.to_hook_data
issue_url = Gitlab::UrlBuilder.new(:issue).build(issue.id)
issue_data[:object_attributes].merge!(url: issue_url, action: action)
issue.project.execute_hooks(issue_data, :issue_hooks)
end
-
- def create_milestone_note(issue)
- Note.create_milestone_change_note(issue, issue.project, current_user, issue.milestone)
- end
end
end