diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-09 15:11:14 +0200 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-12 10:43:04 +0200 |
commit | 07fc2f852a0b4136b6d97c1d9773819c47e7e8e7 (patch) | |
tree | b80f5200b1d7398eadc9b7ae029873f3cc6ad93a /app/models/environment.rb | |
parent | 03ea01946524a74773b24430c81804c2724b84b6 (diff) | |
download | gitlab-ce-07fc2f852a0b4136b6d97c1d9773819c47e7e8e7.tar.gz |
Method names changed to #includes_commit?zj-deployment-status-on-mr
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index 7247125f8a0..75e6f869786 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -26,9 +26,9 @@ class Environment < ActiveRecord::Base self.external_url = nil if self.external_url.blank? end - def deployed_from?(ref) + def includes_commit?(commit) return false unless last_deployment - last_deployment.deployed_to?(ref) + last_deployment.includes_commit?(commit) end end |