From de831543422551be33730362e511c3442aaa1b08 Mon Sep 17 00:00:00 2001 From: Nelson Jovel Date: Tue, 20 Feb 2024 21:26:02 -0800 Subject: [PATCH] fix: Support true/false column values when categorizing income status. True is categorized as Economically Disadvantaged. False is categorized as Not Economically Disadvantaged --- app/models/income.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/income.rb b/app/models/income.rb index 2402876c..7adcc600 100644 --- a/app/models/income.rb +++ b/app/models/income.rb @@ -8,9 +8,9 @@ class Income < ApplicationRecord def self.to_designation(income) case income - in /Free\s*Lunch|Reduced\s*Lunch|Low\s*Income|Reduced\s*price\s*lunch/i + in /Free\s*Lunch|Reduced\s*Lunch|Low\s*Income|Reduced\s*price\s*lunch|true/i "Economically Disadvantaged - Y" - in /Not\s*Eligible/i + in /Not\s*Eligible|false/i "Economically Disadvantaged - N" else "Unknown"