summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-06-09 16:52:49 +0000
committerRobert Speicher <robert@gitlab.com>2017-06-09 16:52:49 +0000
commit3d963515bebb301eea516a5f1f807160000259f8 (patch)
treeec4340e6761a8d42bd6c4807e1d93bda6b426a76 /lib
parent07fdabbc3ae5dca9780870f7f069569d94cb85bf (diff)
parent7188b4d83989dcfcc672f88e19d1ddb550b4917a (diff)
downloadgitlab-ce-3d963515bebb301eea516a5f1f807160000259f8.tar.gz
Merge branch 'tc-link-to-commit-on-help-page' into 'master'
Make the revision on the `/help` page clickable See merge request !12016
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index c3064163e07..11f7c8b9510 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -1,9 +1,11 @@
require_dependency 'gitlab/git'
module Gitlab
+ COM_URL = 'https://gitlab.com'.freeze
+
def self.com?
# Check `staging?` as well to keep parity with gitlab.com
- Gitlab.config.gitlab.url == 'https://gitlab.com' || staging?
+ Gitlab.config.gitlab.url == COM_URL || staging?
end
def self.staging?