Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-03-06 18:05:24 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2018-03-06 18:05:24 +0300
commit60f5250893626620920d2f108df3b3e98d974f0e (patch)
tree8b84df5499ff27e70ad354d29a60568033ab426d /app
parentbd684b70ebbc7f3dfedc4fa29485e67e13ca4731 (diff)
Arg.id via method pointer
Diffstat (limited to 'app')
-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