summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-03-16 12:05:39 -0700
committerStan Hu <stanhu@gmail.com>2018-03-16 12:05:39 -0700
commit02d2a789d2a8a906f76aa2720560b4659f164d2c (patch)
treefdaef3af2cf8ed93854cb00864cbd7de07c12a8a
parent9fd2d9ea243e8691c7a7aa9575256ac636d59792 (diff)
downloadgitlab-ce-02d2a789d2a8a906f76aa2720560b4659f164d2c.tar.gz
Fix "A copy of Gitlab::Metrics::Methods" have been removed error
Closes #44365
-rw-r--r--lib/gitlab/metrics/methods.rb2
1 files changed, 1 insertions, 1 deletions
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)