低版本的谷歌浏览器无法修改课程密码

This commit is contained in:
cxt 2016-02-23 15:51:33 +08:00
parent 070af9ad73
commit c6d203d186
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ class CoursesService
def edit_course(params,course,current_user) def edit_course(params,course,current_user)
course.send(:safe_attributes=, params[:course], current_user) course.send(:safe_attributes=, params[:course], current_user)
#course.safe_attributes = params[:course] #course.safe_attributes = params[:course]
course.password = params[:course][:password]
course.time = params[:time] course.time = params[:time]
course.term = params[:term] course.term = params[:term]
course.end_time = params[:end_time] course.end_time = params[:end_time]