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
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-04-13 15:27:17 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-04-13 15:27:17 +0300
commit59c735bd1efe13405a7cdc11d9617be09d599266 (patch)
tree5344a0c87a7f559d46b90b9d824df63e3fc35c74 /lib
parentcf306b17bfdcc426b635a5f99c972985598a4094 (diff)
parent2e13f6c326b920f1b78ca592dc1b938b62d5eef3 (diff)
Merge branch 'rs-gitlab-com-check' into 'master'
Add `Gitlab.com?` method To be used as a feature flag for GitLab.com-only features, such as welcome emails. We will be careful to only use this to disable features or functionality that do not make sense for any installations that aren't GitLab.com. We will not use this to restrict features from other installations or keep them "exclusive" to GitLab.com. See merge request !3682
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index 6108697bc20..7479e729db1 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -1,4 +1,7 @@
require 'gitlab/git'
module Gitlab
+ def self.com?
+ Gitlab.config.gitlab.url == 'https://gitlab.com'
+ end
end