summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGabriel Gizotti <gabriel@gizotti.com>2016-12-28 23:22:31 +1000
committerGabriel Gizotti <gabriel@gizotti.com>2016-12-28 23:22:31 +1000
commit38dd9b545cda01df61c055dc18698a38a84174d9 (patch)
treeec9e5289b7a249d3af0d78edf26aa3ec1c7de41a /app
parentd1debe18ae5a1ad77ad31dd71048d3da7964ae11 (diff)
downloadgitlab-ce-38dd9b545cda01df61c055dc18698a38a84174d9.tar.gz
use MergeRequest#closes_issues instead of rewriting code to retrieve closing issues on MergeRequest#issues_mentioned_but_not_closing
Diffstat (limited to 'app')
-rw-r--r--app/models/merge_request.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index 22490d121c7..61845bf4036 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -576,11 +576,7 @@ class MergeRequest < ActiveRecord::Base
ext = Gitlab::ReferenceExtractor.new(project, current_user)
ext.analyze(description)
- issues = ext.issues
- closing_issues = Gitlab::ClosingIssueExtractor.new(project, current_user).
- closed_by_message(description)
-
- issues - closing_issues
+ ext.issues - closes_issues
end
def target_project_path