summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2019-08-01 14:41:37 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2019-08-01 16:10:05 +0200
commit27194e08525fa2ef43aa9f3dbfda378a7b1258bd (patch)
treea52885aebbffa2da5b782e24f8eb038a55d2e045 /config/initializers
parent252a0b0faa07160214e46e696cbfb0761e6f2a3d (diff)
downloadgitlab-ce-27194e08525fa2ef43aa9f3dbfda378a7b1258bd.tar.gz
Support X_if_ee methods for QA testsbackport-fix-remaining-prepend-lines
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/initializers')
-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?