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.
This commit is contained in:
parent
224db2f890
commit
6aa215aaea
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue