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 label
      return @label if @label
      ss = Hyrax::SchoolService.new
      qa_terms = ss.active_elements.find { |school| school['id'] == id } || {}
      @label = qa_terms[:label]
    end
def label return @label if @label ss = Hyrax :: SchoolService . new qa_terms = ss . active_elements . find { | school | school [ 'id' ] == id } || { } @label = qa_terms [ :label ] end
Find the QA terms for all active schools.
Find the QA terms for all active schools .