diff options
author | Felipe Artur <felipefac@gmail.com> | 2018-10-03 17:45:39 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2018-10-04 15:59:14 -0300 |
commit | 0ae48e068794a732f728de76ffbf3f95e702ba9a (patch) | |
tree | e63047572f6dfc7533af377f7329dd242b7f396d /app/controllers/projects | |
parent | 8a8ae2f57fe0db9b33f100e9a68c9eac4fd71c4d (diff) | |
download | gitlab-ce-0ae48e068794a732f728de76ffbf3f95e702ba9a.tar.gz |
Move issue related_branches to service
Moves the related_branches method from Issue model
to RelatedBranchesService
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 4e859de6fde..b06a6f3bb0d 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -127,7 +127,7 @@ class Projects::IssuesController < Projects::ApplicationController end def related_branches - @related_branches = @issue.related_branches(current_user) + @related_branches = Issues::RelatedBranchesService.new(project, current_user).execute(issue) respond_to do |format| format.json do |