app/presenters/tree_builder_ops_vmdb.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)
    vmdb_table_id = object[:id].split("|").last.split('-').last
    vmdb_indexes  = VmdbIndex.includes(:vmdb_table).where(:vmdb_tables => {:type => 'VmdbTableEvm', :id => vmdb_table_id})
    count_only_or_objects(count_only, vmdb_indexes, "name")
  end
def x_get_tree_custom_kids ( object , count_only , _options ) vmdb_table_id = object [ :id ] . split ( "|" ) . last . split ( '-' ) . last vmdb_indexes = VmdbIndex . includes ( :vmdb_table ) . where ( :vmdb_tables => { :type => 'VmdbTableEvm' , :id => vmdb_table_id } ) count_only_or_objects ( count_only , vmdb_indexes , "name" ) end
Handle custom tree nodes (object is a Hash)
Handle custom tree nodes ( object is a Hash )
object
<not_specific>
count_only
<not_specific>
_options
<not_specific>