summaryrefslogtreecommitdiff
path: root/lib/gitlab.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2019-03-04 08:20:37 +0000
committerPhil Hughes <me@iamphill.com>2019-03-04 08:20:37 +0000
commitec7835946a0c981e9b263d2840e68f16eb1b3789 (patch)
treef02fd29d0367b55a2eb5f701015d73c28a63413e /lib/gitlab.rb
parent615c14b28990489d99371b7ffdb57fe54d463e64 (diff)
downloadgitlab-ce-ec7835946a0c981e9b263d2840e68f16eb1b3789.tar.gz
Creates a function to check if repo is EE
Adds EE information to gon Creates a global vue mixin
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r--lib/gitlab.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index e073450283b..f42ca5a9cd6 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -58,6 +58,10 @@ module Gitlab
Rails.env.development? || org? || com?
end
+ def self.ee?
+ Object.const_defined?(:License)
+ end
+
def self.process_name
return 'sidekiq' if Sidekiq.server?
return 'console' if defined?(Rails::Console)