app/models/schools/school.rb
# Find the QA terms for all active schools.
Find the QA terms for all active schools.
Find the QA terms for all active schools .
def department_ids
      return [] unless service
      qa_terms = service.authority.all.select { |a| a["active"] == true }
      qa_terms.map { |terms| terms[:id] }
    end
def department_ids return [ ] unless service qa_terms = service . authority . all . select { | a | a [ "active" ] == true } qa_terms . map { | terms | terms [ :id ] } end
Find the QA terms for all active schools.
Find the QA terms for all active schools .
# Only return active departments for the school listings