Allow to override Gitlab.ee? with IS_GITLAB_EE
(cherry picked from commit f3b74d59865a88be67663339447667c725961413)
This commit is contained in:
parent
5990d42253
commit
78edcc2678
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ module Gitlab
|
|||
end
|
||||
|
||||
def self.ee?
|
||||
Object.const_defined?(:License)
|
||||
if ENV['IS_GITLAB_EE'].present?
|
||||
Gitlab::Utils.to_boolean(ENV['IS_GITLAB_EE'])
|
||||
else
|
||||
Object.const_defined?(:License)
|
||||
end
|
||||
end
|
||||
|
||||
def self.process_name
|
||||
|
|
Loading…
Reference in a new issue