summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-02 23:06:13 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-02 23:06:13 +0100
commiteffb96b98511711fe8797f46fe1add68b968694f (patch)
treee39362d7f058b072b802fc57de8924619dd284de /app/helpers
parent40753029e40b9c2824648a966048595d36efc793 (diff)
downloadgitlab-ce-effb96b98511711fe8797f46fe1add68b968694f.tar.gz
Refactor AutoDevopsHelper.missing_auto_devops_domain?
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/auto_devops_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/auto_devops_helper.rb b/app/helpers/auto_devops_helper.rb
index 4a7b7ff763b..16451993e93 100644
--- a/app/helpers/auto_devops_helper.rb
+++ b/app/helpers/auto_devops_helper.rb
@@ -27,7 +27,7 @@ module AutoDevopsHelper
private
def missing_auto_devops_domain?(project)
- !(project.auto_devops&.has_domain? || current_application_settings.auto_devops_domain.present?)
+ !(project.auto_devops || project.build_auto_devops)&.has_domain?
end
def missing_auto_devops_service?(project)