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:
authorLin Jen-Shin <godfat@godfat.org>2019-06-27 09:01:49 +0300
committerLin Jen-Shin <godfat@godfat.org>2019-06-27 09:01:49 +0300
commitbe099306ef21c2e2360cc2d49a1a61ce4d2b3594 (patch)
tree1b872bbabbbc93805b1f0521b6d599fc56ef60fd /lib
parentfa54a486eb6d6a71b015fce72decf33b011a0b2d (diff)
parent8e42fe9450532321d2af24a3aaad757b863636e6 (diff)
Merge branch 'rs-ee-only-routes-2' into 'master'
CE-EE parity for routes See merge request gitlab-org/gitlab-ce!29994
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index fd4bbd69468..c62d1071dba 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -71,6 +71,10 @@ module Gitlab
end
end
+ def self.ee
+ yield if ee?
+ end
+
def self.http_proxy_env?
HTTP_PROXY_ENV_VARS.any? { |name| ENV[name] }
end