From 496ad85469942eca9a6548797456a94e54c12366 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 16 Oct 2014 14:48:33 +0800 Subject: [PATCH] 1 --- app/controllers/courses_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 4ddf5186d..696511100 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -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