From dbfa2c42fd476533f0be4d0c22d8ab19160f6f24 Mon Sep 17 00:00:00 2001 From: Keenan Brock <keenan@thebrocks.net> Date: Sun, 25 Aug 2019 19:47:03 -0400 Subject: [PATCH] direct_vms is a method direct vms is no longer an association Removing association method using it --- app/models/service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/service.rb b/app/models/service.rb index 4fc349f8b717..1f5be83d3065 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -185,7 +185,7 @@ def direct_vms end def all_vms - MiqPreloader.preload_and_map(subtree, :direct_vms) + MiqPreloader.preload(subtree, :direct_vms).flat_map(&:direct_vms) end def vms