mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
don't show invalid categories
This commit is contained in:
parent
e05134c3ba
commit
d8a6821ebb
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ class SchoolsController < ApplicationController
|
|||
def show
|
||||
district = @school.district
|
||||
authenticate(district.name.downcase, "#{district.name.downcase}!")
|
||||
@school_categories = @school.school_categories.for_parent_category(@school, nil).sort
|
||||
@school_categories = @school.school_categories.for_parent_category(@school, nil).valid.sort
|
||||
end
|
||||
|
||||
def admin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue