app/presenters/tree_builder_vandt.rb
# Handle custom tree nodes (object is a Hash)
Handle custom tree nodes (object is a Hash)
Handle custom tree nodes ( object is a Hash )
def x_get_tree_custom_kids(object, count_only, _options)
    objects = case object[:id]
              when "orph" 
                rbac_filtered_objects(VmInfra.all_orphaned) +
                rbac_filtered_objects(TemplateInfra.all_orphaned)
              when "arch" 
                rbac_filtered_objects(VmInfra.all_archived) +
                rbac_filtered_objects(TemplateInfra.all_archived)
              end
    count_only_or_objects(count_only, objects, "name")
  end
def x_get_tree_custom_kids ( object , count_only , _options ) objects = case object [ :id ] when "orph" rbac_filtered_objects ( VmInfra . all_orphaned ) + rbac_filtered_objects ( TemplateInfra . all_orphaned ) when "arch" rbac_filtered_objects ( VmInfra . all_archived ) + rbac_filtered_objects ( TemplateInfra . all_archived ) end count_only_or_objects ( count_only , objects , "name" ) end
Handle custom tree nodes (object is a Hash)
Handle custom tree nodes ( object is a Hash )
# Orphaned # Archived
object
<not_specific>
count_only
<not_specific>
_options
<not_specific>