diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-06 15:30:55 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-06 15:30:55 +0100 |
commit | 5291c0bb51ae19109e09ff0ee7fca6f118288923 (patch) | |
tree | aa87234eb32b1cd4dab5822055bcefb4c4e9543d /app/models/project_auto_devops.rb | |
parent | 56bcb3e8c87bf25cb33ed02832c146e966cc4d7d (diff) | |
download | gitlab-ce-5291c0bb51ae19109e09ff0ee7fca6f118288923.tar.gz |
Use domain.presence instead of domain to avoid empty strings38175-add-domain-field-to-auto-devops-application-setting
Diffstat (limited to 'app/models/project_auto_devops.rb')
-rw-r--r-- | app/models/project_auto_devops.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_auto_devops.rb b/app/models/project_auto_devops.rb index 728e64e8fe3..112ed7ed434 100644 --- a/app/models/project_auto_devops.rb +++ b/app/models/project_auto_devops.rb @@ -16,7 +16,7 @@ class ProjectAutoDevops < ActiveRecord::Base def variables variables = [] - variables << { key: 'AUTO_DEVOPS_DOMAIN', value: domain || instance_domain, public: true } if has_domain? + variables << { key: 'AUTO_DEVOPS_DOMAIN', value: domain.presence || instance_domain, public: true } if has_domain? variables end end |