server/lib/cimi/models/schema.rb
#For MachineCollection, copy over the schema of Machine to hold
#each member of the collection - avoid duplicating the schemas
For MachineCollection, copy over the schema of Machine to hold
each member of the collection - avoid duplicating the schemas
For MachineCollection copy over the schema of Machine to hold each member of the collection - avoid duplicating the schemas
def add_collection_member_array(model)
    member_symbol = model.name.split("::").last.underscore.pluralize.to_sym
    members = CIMI::Model::Schema::Array.new(member_symbol)
    members.struct.schema.attributes = model.schema.attributes
    self.attributes << members
  end
def add_collection_member_array ( model ) member_symbol = model . name . split ( "::" ) . last . underscore . pluralize . to_sym members = CIMI :: Model :: Schema :: Array . new ( member_symbol ) members . struct . schema . attributes = model . schema . attributes self . attributes << members end
For MachineCollection, copy over the schema of Machine to hold
each member of the collection - avoid duplicating the schemas
For MachineCollection copy over the schema of Machine to hold each member of the collection - avoid duplicating the schemas
model
<not_specific>