Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-01-08 04:27:19 +0300
committerNick Thomas <nick@gitlab.com>2018-01-08 04:30:05 +0300
commit75e718f207083615252b9ef047c4c466d9fcb5a0 (patch)
treeb031eb6cffe3343d5cb1310b95307d9a06d3e3af /app/models/pages_domain.rb
parent2c66b942bde756554b22d8b54c586fe45f544b0e (diff)
Generate HTTP URLs for custom Pages domains when appropriate
Diffstat (limited to 'app/models/pages_domain.rb')
-rw-r--r--app/models/pages_domain.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/pages_domain.rb b/app/models/pages_domain.rb
index 8de42ff9d2e..d8bf54e0c40 100644
--- a/app/models/pages_domain.rb
+++ b/app/models/pages_domain.rb
@@ -27,7 +27,7 @@ class PagesDomain < ActiveRecord::Base
def url
return unless domain
- if certificate
+ if certificate.present?
"https://#{domain}"
else
"http://#{domain}"