diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-19 16:54:06 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-29 17:13:04 +0300 |
commit | f5383578d92d525881bae909740306c57fb1cca0 (patch) | |
tree | e8c75c2d982074b668a96d7ebc1312ca90e2a6aa /lib/gitlab/metrics/null_metric.rb | |
parent | 3e898be8aa80993a8af016b351c796beb8750d2e (diff) |
NullMetric as a singleton
Diffstat (limited to 'lib/gitlab/metrics/null_metric.rb')
-rw-r--r-- | lib/gitlab/metrics/null_metric.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/metrics/null_metric.rb b/lib/gitlab/metrics/null_metric.rb index 3b5a2907195..aabada5c21a 100644 --- a/lib/gitlab/metrics/null_metric.rb +++ b/lib/gitlab/metrics/null_metric.rb @@ -2,6 +2,8 @@ module Gitlab module Metrics # Mocks ::Prometheus::Client::Metric and all derived metrics class NullMetric + include Singleton + def method_missing(name, *args, &block) nil end |