From 02d2a789d2a8a906f76aa2720560b4659f164d2c Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 16 Mar 2018 12:05:39 -0700 Subject: [PATCH] Fix "A copy of Gitlab::Metrics::Methods" have been removed error Closes #44365 --- lib/gitlab/metrics/methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/metrics/methods.rb b/lib/gitlab/metrics/methods.rb index cd7c1e507f7..f79eb0cd1bf 100644 --- a/lib/gitlab/metrics/methods.rb +++ b/lib/gitlab/metrics/methods.rb @@ -50,7 +50,7 @@ module Gitlab end def disabled_by_feature(options) - options.with_feature && !Feature.get(options.with_feature).enabled? + options.with_feature && !::Feature.get(options.with_feature).enabled? end def build_metric!(type, name, options)