diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-03 13:37:39 +0200 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-11 21:29:57 +0200 |
commit | b497b0ce3fc3c1882639f9c7d55f7991ce41f15d (patch) | |
tree | 353668ef819c38e3e9a208530a36501b4c524313 /app/models/environment.rb | |
parent | 826862d48ef80ddd849b9e3cb05ef37ba7be41e9 (diff) | |
download | gitlab-ce-b497b0ce3fc3c1882639f9c7d55f7991ce41f15d.tar.gz |
Incorporate feedback
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index f6fdb8d1ecf..7247125f8a0 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_to?(ref) - return unless last_deployment + def deployed_from?(ref) + return false unless last_deployment - last_deployment.deployed_to(ref) + last_deployment.deployed_to?(ref) end end |