app/models/observation_matrix_row_item.rb
# Not names destroy because it doesn't always delete row
Not names destroy because it doesn't always delete row
Not names destroy because it doesn ' t always delete row
def cleanup_single_matrix_row(object)
    mr = nil
    if object.is_a? Otu
      mr = ObservationMatrixRow.where(observation_matrix: observation_matrix, otu_id: object.id).first
    elsif object.is_a? CollectionObject
      mr = ObservationMatrixRow.where(observation_matrix: observation_matrix, collection_object_id: object.id).first
    end
    decrement_matrix_row_reference_count(mr) if !mr.nil?
  end
def cleanup_single_matrix_row ( object ) mr = nil if object . is_a? Otu mr = ObservationMatrixRow . where ( observation_matrix : observation_matrix , otu_id : object . id ) . first elsif object . is_a? CollectionObject mr = ObservationMatrixRow . where ( observation_matrix : observation_matrix , collection_object_id : object . id ) . first end decrement_matrix_row_reference_count ( mr ) if ! mr . nil? end
Not names destroy because it doesn't always delete row
Not names destroy because it doesn ' t always delete row
object
<not_specific>