app/presenters/tree_builder_report_roles.rb
# Get root nodes count/array for explorer tree
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
def x_get_tree_roots(count_only, _options)
    user  = User.current_user
    roles = user.super_admin_user? ? MiqGroup.non_tenant_groups : [user.current_group]
    count_only_or_objects(count_only, roles.sort_by { |o| o.name.downcase }, 'name')
  end
def x_get_tree_roots ( count_only , _options ) user = User . current_user roles = user . super_admin_user? ? MiqGroup . non_tenant_groups : [ user . current_group ] count_only_or_objects ( count_only , roles . sort_by { | o | o . name . downcase } , 'name' ) end
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
count_only
<not_specific>
_options
<not_specific>