summaryrefslogtreecommitdiff
path: root/lib/gitlab/metrics/methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/metrics/methods.rb')
-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 cee601ff14c..5955987541c 100644
--- a/lib/gitlab/metrics/methods.rb
+++ b/lib/gitlab/metrics/methods.rb
@@ -52,7 +52,7 @@ module Gitlab
end
def disabled_by_feature(options)
- options.with_feature && !::Feature.get(options.with_feature).enabled?
+ options.with_feature && !::Feature.enabled?(options.with_feature)
end
def build_metric!(type, name, options)