This commit is contained in:
parent
6a33934122
commit
496ad85469
|
@ -31,7 +31,6 @@ class CoursesController < ApplicationController
|
|||
members = []
|
||||
members << Member.new(:role_ids => [10], :user_id => User.current.id)
|
||||
course.members << members
|
||||
|
||||
StudentsForCourse.create(:student_id => User.current.id, :course_id => params[:object_id])
|
||||
@state = 0
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue