app/controllers/class_lists_controller.rb
# Returns a list of students for the classroom list creator, looking at
# a particular school and grade level.  Includes data needed for inline
# profile, except for notes and services (see #profile_json).
#
# Authorized here is different than normal.
Returns a list of students for the classroom list creator, looking at
a particular school and grade level.  Includes data needed for inline
profile, except for notes and services .

Authorized here is different than normal.
Returns a list of students for the classroom list creator looking at a particular school and grade level . Includes data needed for inline profile except for notes and services . Authorized here is different than normal .
def students_for_grade_level_next_year_json
    params.require(:workspace_id)
    params.require(:school_id)
    params.require(:grade_level_next_year)
    school_id = params[:school_id].to_i
    grade_level_next_year = params[:grade_level_next_year]
    students = queries.authorized_students_for_next_year(school_id, grade_level_next_year)
    students_json = ClassListQueries.students_as_json(students)
    educators_json = Educator.where(school_id: school_id).as_json(only: [:id, :full_name])
    render json: {
      students: students_json,
      educators: educators_json,
      current_educator_id: current_educator.id
    }
  end
def students_for_grade_level_next_year_json params . require ( :workspace_id ) params . require ( :school_id ) params . require ( :grade_level_next_year ) school_id = params [ :school_id ] . to_i grade_level_next_year = params [ :grade_level_next_year ] students = queries . authorized_students_for_next_year ( school_id , grade_level_next_year ) students_json = ClassListQueries . students_as_json ( students ) educators_json = Educator . where ( school_id : school_id ) . as_json ( only : [ :id , :full_name ] ) render json : { students : students_json , educators : educators_json , current_educator_id : current_educator . id } end
Returns a list of students for the classroom list creator, looking at
a particular school and grade level.
Returns a list of students for the classroom list creator looking at a particular school and grade level .
# Check authorization by grade level, differently than normal. # educator names