app/models/section.rb
def build_new_revision
    new_revision = Section.new(version_independent_id: version_independent_id,
                               description: description, parent_id: parent_id, status: status,
                               version: version + 1, name: name, oid: oid,
                               created_by: created_by)
    concepts.each do |c|
      new_revision.concepts << c.dup
    end

    new_revision
  end
# Builds a new section object with the same version_independent_id. Increments
# the version by one and builds a new set of Response objects to go with it.
Builds a new section object with the same version_independent_id. Increments
the version by one and builds a new set of Response objects to go with it.
Builds a new section object with the same version_independent_id . Increments the version by one and builds a new set of Response objects to go with it .
def build_new_revision
    new_revision = Section.new(version_independent_id: version_independent_id,
                               description: description, parent_id: parent_id, status: status,
                               version: version + 1, name: name, oid: oid,
                               created_by: created_by)
    concepts.each do |c|
      new_revision.concepts << c.dup
    end
    new_revision
  end
def build_new_revision new_revision = Section . new ( version_independent_id : version_independent_id , description : description , parent_id : parent_id , status : status , version : version + 1 , name : name , oid : oid , created_by : created_by ) concepts . each do | c | new_revision . concepts << c . dup end new_revision end
Builds a new section object with the same version_independent_id.
Builds a new section object with the same version_independent_id .