Skip to content
Snippets Groups Projects
Commit 60f52508 authored by Pawel Chojnacki's avatar Pawel Chojnacki
Browse files

Arg.id via method pointer

parent bd684b70
No related merge requests found
......@@ -26,7 +26,7 @@ def query(query_name, *args)
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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment