app/controllers/students_controller.rb
# Used by the search bar to query for student names
Used by the search bar to query for student names
Used by the search bar to query for student names
def names
    cached_json_for_searchbar = current_educator.student_searchbar_json
    if cached_json_for_searchbar
      render json: cached_json_for_searchbar
    else
      render json: SearchbarHelper.names_for(current_educator)
    end
  end
def names cached_json_for_searchbar = current_educator . student_searchbar_json if cached_json_for_searchbar render json : cached_json_for_searchbar else render json : SearchbarHelper . names_for ( current_educator ) end end
Used by the search bar to query for student names
Used by the search bar to query for student names