From cf5f50544c3c379474e918fe5e59f3ca3ace15f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Tue, 4 Sep 2018 15:01:26 +0200 Subject: Update code-style --- app/models/prometheus_metric.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/prometheus_metric.rb') diff --git a/app/models/prometheus_metric.rb b/app/models/prometheus_metric.rb index dbb0fd19b74..69d3a21c397 100644 --- a/app/models/prometheus_metric.rb +++ b/app/models/prometheus_metric.rb @@ -55,7 +55,7 @@ class PrometheusMetric < ActiveRecord::Base end def required_metrics - (REQUIRED_METRICS[group.to_sym] || []).map(&:to_s) + REQUIRED_METRICS[group.to_sym].to_a.map(&:to_s) end def to_query_metric -- cgit v1.2.3