app/presenters/tree_builder_policy.rb
# level 1 - compliance & control
level 1 - compliance & control
level 1 - compliance & control
def x_get_tree_roots(count_only, _options)
    %w(xx-compliance xx-control).each { |n| open_node(n) }
    objects = []
    objects << {:id => "compliance", :text => N_("Compliance Policies"), :image => "compliance", :tip => N_("Compliance Policies")}
    objects << {:id => "control", :text => N_("Control Policies"), :image => "control", :tip => N_("Control Policies")}
    count_only_or_objects(count_only, objects)
  end
def x_get_tree_roots ( count_only , _options ) %w( xx-compliance xx-control ) . each { | n | open_node ( n ) } objects = [ ] objects << { :id => "compliance" , :text => N_ ( "Compliance Policies" ) , :image => "compliance" , :tip => N_ ( "Compliance Policies" ) } objects << { :id => "control" , :text => N_ ( "Control Policies" ) , :image => "control" , :tip => N_ ( "Control Policies" ) } count_only_or_objects ( count_only , objects ) end
level 1 - compliance & control
level 1 - compliance & control
# Push folder node ids onto open_nodes array
count_only
<not_specific>
_options
<not_specific>