Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-09 16:11:14 +0300
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-12 11:43:04 +0300
commit07fc2f852a0b4136b6d97c1d9773819c47e7e8e7 (patch)
treeb80f5200b1d7398eadc9b7ae029873f3cc6ad93a /app/models/deployment.rb
parent03ea01946524a74773b24430c81804c2724b84b6 (diff)
Method names changed to #includes_commit?
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index 19b08f49d96..1e338889714 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -37,8 +37,7 @@ class Deployment < ActiveRecord::Base
deployable.try(:other_actions)
end
- def deployed_to?(ref)
- commit = project.commit(ref)
+ def includes_commit?(commit)
return false unless commit
project.repository.is_ancestor?(commit.id, sha)