Arg.id via method pointer

This commit is contained in:
Pawel Chojnacki 2018-03-06 16:05:24 +01:00
parent bd684b70eb
commit 60f5250893
1 changed files with 1 additions and 1 deletions

View File

@ -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