summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-03 18:03:26 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-03 18:03:26 +0200
commite33ddfebf2248fe31bb27fe1d34048df97ed61b0 (patch)
treef7d5af3d3c48924beaf7c8ce9d67e2c09eee0dde /app/models/commit.rb
parentb492f0f86ea0f0b4e954e1b7ed0b84d08d784272 (diff)
downloadgitlab-ce-e33ddfebf2248fe31bb27fe1d34048df97ed61b0.tar.gz
Refactor ClosingIssueExtractor.
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 084cf420079..7a0ad137650 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -118,7 +118,7 @@ class Commit
# Discover issues should be closed when this commit is pushed to a project's
# default branch.
def closes_issues(project, current_user = self.committer)
- Gitlab::ClosingIssueExtractor.closed_by_message_in_project(safe_message, project, current_user)
+ Gitlab::ClosingIssueExtractor.new(project, current_user).closed_by_message(safe_message)
end
# Mentionable override.