diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-16 13:26:36 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-16 13:26:36 +0300 |
commit | d9d69d7ba7dd660c9b3e0ab30b58891a8b760328 (patch) | |
tree | a4602990813436651a4e41c5a2dc0faa990f4106 /app/models/environment.rb | |
parent | e49229aa04144e0ce7672ad0a34a24da9b09027e (diff) |
Add specs for environments recently updated on branch
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index 8e4de640953..5278efd71d2 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -38,7 +38,7 @@ class Environment < ActiveRecord::Base end def recently_updated_on_branch?(ref) - ref.to_s == last_deployment.ref + ref.to_s == last_deployment.try(:ref) end def last_deployment |