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/config
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2019-08-01 15:41:37 +0300
committerRémy Coutable <remy@rymai.me>2019-08-19 10:43:37 +0300
commit6aa215aaea146f21eb5a88a511f7bbe84ad31ef5 (patch)
tree887b89ae6dcfd88ac10f6277215048c46447008d /config
parent224db2f8901964a34851018dd93b962a45a3032f (diff)
Support X_if_ee methods for QA tests
For the QA tests to use the new injection methods, we must require the initializer and ensure that the "constantize" method is available.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/0_inject_enterprise_edition_module.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/0_inject_enterprise_edition_module.rb b/config/initializers/0_inject_enterprise_edition_module.rb
index 4b21732e179..39595e23abe 100644
--- a/config/initializers/0_inject_enterprise_edition_module.rb
+++ b/config/initializers/0_inject_enterprise_edition_module.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require 'active_support/inflector'
+
module InjectEnterpriseEditionModule
def prepend_if_ee(constant)
prepend(constant.constantize) if Gitlab.ee?