Add 2019-20 year teacher surveys and activate the year selector

This commit is contained in:
rebuilt 2022-02-04 20:16:29 +01:00
parent 93aa8df41a
commit e1f50fef9e
14 changed files with 2943 additions and 63 deletions

View file

@ -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