app/config_objects/per_district.rb
# Map the row of an MCAS row to a normalized Insights Assessment subject field.
Map the row of an MCAS row to a normalized Insights Assessment subject field.
Map the row of an MCAS row to a normalized Insights Assessment subject field .
def normalized_subject_from_mcas_export(row)
    if @district_key == SOMERVILLE
      if 'English Language Arts'.in?(row[:assessment_name])
        'ELA'
      else
        row[:assessment_subject]
      end
    elsif @district_key == BEDFORD
      if row[:assessment_subject] == 'Math'
        'Mathematics'
      else
        row[:assessment_subject]
      end
    else
      raise_not_handled!
    end
  end
def normalized_subject_from_mcas_export ( row ) if @district_key == SOMERVILLE if 'English Language Arts' . in? ( row [ :assessment_name ] ) 'ELA' else row [ :assessment_subject ] end elsif @district_key == BEDFORD if row [ :assessment_subject ] == 'Math' 'Mathematics' else row [ :assessment_subject ] end else raise_not_handled! end end
Map the row of an MCAS row to a normalized Insights Assessment subject field.
Map the row of an MCAS row to a normalized Insights Assessment subject field .
row
<not_specific>