app/presenters/tree_builder_service_dialogs.rb
class TreeBuilderServiceDialogs < TreeBuilderAeCustomization
def tree_init_options
{:open_all => true}
end
def root_options
{
:text => t = _("All Dialogs"),
:tooltip => t
}
end
# Get root nodes count/array for explorer tree
def x_get_tree_roots
objects = Rbac.filtered(Dialog.all).sort_by { |a| a.label.downcase }
count_only_or_objects(false, objects)
end
end