Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
Build initial gradings
Browse files Browse the repository at this point in the history
  • Loading branch information
allenwq committed Oct 11, 2015
1 parent 36dff43 commit eb8f0ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/assessment/submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def new
end
end

if @assessment.is_a?(Assessment::Training)
@submission.gradings.build(grade: 0, std_course_id: curr_user_course.id)
end

if @submission.save
redirect_to edit_course_assessment_submission_path(@course, @assessment, @submission)
else
Expand Down

0 comments on commit eb8f0ca

Please sign in to comment.