mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
chore: update to rails 8
This commit is contained in:
parent
1ce3ed5b6f
commit
e4e1a2e96e
6 changed files with 86 additions and 92 deletions
|
|
@ -9,13 +9,6 @@ class Score < ApplicationRecord
|
|||
NIL_SCORE = Score.new(average: nil, meets_teacher_threshold: false, meets_student_threshold: false,
|
||||
meets_admin_data_threshold: false)
|
||||
|
||||
enum group: {
|
||||
all_students: 0,
|
||||
race: 1,
|
||||
grade: 2,
|
||||
gender: 3
|
||||
}
|
||||
|
||||
def in_zone?(zone:)
|
||||
return false if average.nil? || average.is_a?(Float) && average.nan?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue