复制学期时密码修改无效

This commit is contained in:
cxt 2016-01-08 16:20:14 +08:00
parent a0afe6ccbf
commit 17aeff1587
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ class CoursesService
@course.extra = 'course' + DateTime.parse(Time.now.to_s).strftime('%Y-%m-%d_%H-%M-%S').to_s
@course.send(:safe_attributes=, params[:course], current_user)
#@course.safe_attributes(current_user,params[:course])
@course.password = params[:course][:password]
@course.tea_id = current_user.id
@course.term = params[:term]
@course.time = params[:time]