发布可引用的作业至课程,作业的原作者不应收到微信消息提醒

This commit is contained in:
cxt 2016-05-18 16:28:43 +08:00
parent 670b2c48c7
commit 31d94dc052
1 changed files with 3 additions and 3 deletions

View File

@ -589,7 +589,7 @@ class UsersController < ApplicationController
new_homework.homework_detail_programing.save if new_homework.homework_detail_programing
new_homework.homework_detail_group.save if new_homework.homework_detail_group
end
homework.update_attribute(:quotes, homework.quotes+1)
homework.update_column(:quotes, homework.quotes+1)
end
@homework = homework
respond_to do |format|
@ -862,7 +862,7 @@ class UsersController < ApplicationController
student_work.save
send_message_to_teacher(student_work)
homework.update_attributes(:updated_at => Time.now)
homework.update_column(:updated_at, Time.now)
update_course_activity(homework.class,homework.id)
update_user_activity(homework.class,homework.id)
update_org_activity(homework.class,homework.id)
@ -950,7 +950,7 @@ class UsersController < ApplicationController
homework_detail_group.save if homework_detail_group
if params[:quotes] && !params[:quotes].blank?
quotes_homework = HomeworkCommon.find params[:quotes].to_i
quotes_homework.update_attribute(:quotes, quotes_homework.quotes+1)
quotes_homework.update_column(:quotes, quotes_homework.quotes+1)
end
if params[:is_in_course] == "1"
redirect_to homework_common_index_path(:course => homework.course_id)