12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'app/controllers/gaku/courses/exams_controller.rb', line 12
def grading
@course = Course.find(params[:course_id])
@exam = Exam.includes(exam_portions: :exam_portion_scores).find(params[:id])
@students = @course.students
@grading_methods = @course.grading_methods
@gradable_scope = @course
init_portion_scores
@grading_calculations = Grading::Collection::Calculations.new(@grading_methods, @students, @exam, @gradable_scope).calculate
render 'gaku/shared/grading/grading'
end
|