diff options
author | Sarah Yasonik <syasonik@gitlab.com> | 2019-02-14 18:05:35 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-02-14 18:05:35 +0000 |
commit | e6fcdd7aca669ff500f7d68276ff61c4e23ac38b (patch) | |
tree | 6638d1310fe3a3584f4e9b7a9847806c15a85897 /app | |
parent | 4818211a3a186108d0e5e7780cf585da17acb5c6 (diff) | |
download | gitlab-ce-e6fcdd7aca669ff500f7d68276ff61c4e23ac38b.tar.gz |
Update Metrics references to Object path
On reload, references to Metrics within classes in the Gitlab::Metrics
module fail. Update all references to ::Gitlab::Metrics so that
constant lookup finds the right module in development. This fix should
not impact production.
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/reactive_caching_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/reactive_caching_worker.rb b/app/workers/reactive_caching_worker.rb index 7c66ac046ea..9ec8bcca4f3 100644 --- a/app/workers/reactive_caching_worker.rb +++ b/app/workers/reactive_caching_worker.rb @@ -6,7 +6,7 @@ class ReactiveCachingWorker # rubocop: disable CodeReuse/ActiveRecord def perform(class_name, id, *args) klass = begin - Kernel.const_get(class_name) + class_name.constantize rescue NameError nil end |