mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Add 2019-20 year teacher surveys and activate the year selector
This commit is contained in:
parent
93aa8df41a
commit
e1f50fef9e
14 changed files with 2943 additions and 63 deletions
|
|
@ -9,4 +9,10 @@ class AcademicYear < ActiveRecord::Base
|
|||
end
|
||||
AcademicYear.find_by_range("#{ay_range_start}-#{ay_range_end.to_s[2, 3]}")
|
||||
end
|
||||
|
||||
def formatted_range
|
||||
years = range.split('-')
|
||||
"#{years.first} – 20#{years.second}"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue