chore: make sure CSV and File objects are properly namespaced

This commit is contained in:
Nelson Jovel 2024-02-07 15:39:27 -08:00
parent a99ed183a1
commit ed1310f93c
34 changed files with 327 additions and 27 deletions

View file

@ -6,7 +6,7 @@ module Dashboard
class EnrollmentLoader
def load_data(filepath:)
enrollments = []
CSV.parse(File.read(filepath), headers: true) do |row|
::CSV.parse(::File.read(filepath), headers: true) do |row|
row = EnrollmentRowValues.new(row:, schools: school_hash, academic_years: academic_year_hash)
next unless row.school.present? && row.academic_year.present?