diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-04-05 10:25:01 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-04-05 10:25:01 +1300 |
commit | 85c94725e56ef90bdfd0c22cbf96a27110483707 (patch) | |
tree | bff9fa2ddf1f10243a3200e689f55f269dc27bb9 /app | |
parent | 480d57d2f72eb2b1ce2e5a45ac2989ead031775a (diff) | |
download | gitlab-ce-85c94725e56ef90bdfd0c22cbf96a27110483707.tar.gz |
Switch to Object.const_get59719-const-get
As we get error with Kernel.const_get(..., false)
```
uninitialized constant Kernel::Gitlab
```
Kernel is included into Object. I guess top level constants are loaded
into Object and not the Kernel module.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/prometheus_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/prometheus_adapter.rb b/app/models/concerns/prometheus_adapter.rb index ae6cf88231b..231faa2b6c4 100644 --- a/app/models/concerns/prometheus_adapter.rb +++ b/app/models/concerns/prometheus_adapter.rb @@ -36,7 +36,7 @@ module PrometheusAdapter def calculate_reactive_cache(query_class_name, *args) return unless prometheus_client - data = Kernel.const_get(query_class_name, false).new(prometheus_client_wrapper).query(*args) + data = Object.const_get(query_class_name, false).new(prometheus_client_wrapper).query(*args) { success: true, data: data, |