Arg.id via method pointer
This commit is contained in:
parent
bd684b70eb
commit
60f5250893
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue