作业无法由匿评作业修改为普通作业

This commit is contained in:
sw 2015-07-08 11:17:36 +08:00
parent 17a9a1023a
commit 9a2cb324ab
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ class HomeworkCommonController < ApplicationController
@homework.description = params[:homework_common][:description]
@homework.end_time = params[:homework_common][:end_time]
@homework.publish_time = params[:homework_common][:publish_time]
@homework.homework_type = params[:homework_common][:homework_type]
unless @homework.late_penalty == params[:late_penalty]
@homework.student_works.where("created_at > '#{@homework.end_time} 23:59:59'").each do |student_work|
student_work.late_penalty = params[:late_penalty]