Skip to content

Commit

Permalink
direct_vms is a method
Browse files Browse the repository at this point in the history
direct vms is no longer an association
Removing association method using it
  • Loading branch information
kbrock committed Aug 26, 2019
1 parent 727acba commit dbfa2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbfa2c4

Please sign in to comment.