diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-06-27 06:01:49 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-06-27 06:01:49 +0000 |
commit | be099306ef21c2e2360cc2d49a1a61ce4d2b3594 (patch) | |
tree | 1b872bbabbbc93805b1f0521b6d599fc56ef60fd /lib | |
parent | fa54a486eb6d6a71b015fce72decf33b011a0b2d (diff) | |
parent | 8e42fe9450532321d2af24a3aaad757b863636e6 (diff) | |
download | gitlab-ce-be099306ef21c2e2360cc2d49a1a61ce4d2b3594.tar.gz |
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.rb | 4 |
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 |