summaryrefslogtreecommitdiff
path: root/app/models/concerns/prometheus_adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/prometheus_adapter.rb')
-rw-r--r--app/models/concerns/prometheus_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/prometheus_adapter.rb b/app/models/concerns/prometheus_adapter.rb
index fea99a7cd35..18cbbd871a1 100644
--- a/app/models/concerns/prometheus_adapter.rb
+++ b/app/models/concerns/prometheus_adapter.rb
@@ -26,7 +26,7 @@ module PrometheusAdapter
query_class = Gitlab::Prometheus::Queries.const_get("#{query_name.to_s.classify}Query")
- args.map! { |arg| arg.id }
+ args.map!(&:id)
with_reactive_cache(query_class.name, *args, &query_class.method(:transform_reactive_result))
end