Merge branch '59719-const-get' into 'master'
Do not inherit when calling const_get See merge request gitlab-org/gitlab-ce!26985
This commit is contained in:
commit
0912fd8ad2
|
@ -36,7 +36,7 @@ module PrometheusAdapter
|
||||||
def calculate_reactive_cache(query_class_name, *args)
|
def calculate_reactive_cache(query_class_name, *args)
|
||||||
return unless prometheus_client
|
return unless prometheus_client
|
||||||
|
|
||||||
data = Kernel.const_get(query_class_name).new(prometheus_client_wrapper).query(*args)
|
data = Object.const_get(query_class_name, false).new(prometheus_client_wrapper).query(*args)
|
||||||
{
|
{
|
||||||
success: true,
|
success: true,
|
||||||
data: data,
|
data: data,
|
||||||
|
|
Loading…
Reference in New Issue