From 06cb494f457ebf5ccc65f8e0c036fc7a97b99682 Mon Sep 17 00:00:00 2001 From: Nelson Jovel Date: Tue, 20 Feb 2024 21:24:14 -0800 Subject: [PATCH] fix: change the default to not an english language learner. Blank columns are treated as Not ELL. Only mark student as an english language learner if it's marked as such. Columns marked with 'NA' are treated as unknown --- app/models/ell.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/ell.rb b/app/models/ell.rb index 44e5ea59..9312e786 100644 --- a/app/models/ell.rb +++ b/app/models/ell.rb @@ -6,12 +6,12 @@ class Ell < ApplicationRecord friendly_id :designation, use: [:slugged] def self.to_designation(ell) case ell - in /lep student 1st year|LEP student not 1st year|EL Student First Year|LEP\s*student/i + in /lep student 1st year|LEP student not 1st year|EL Student First Year|LEP\s*student|true/i "ELL" - in /Does not apply/i - "Not ELL" - else + in /^NA$|^#NA$/i "Unknown" + else + "Not ELL" end end end