创建实训

chromesetting
daiao 5 years ago
parent 3aef2eeb53
commit d58809fbed

@ -221,7 +221,7 @@ class SubjectsController < ApplicationController
# 添加合作者
@shixun.shixun_members.create!(user_id: current_user.id, role: 1)
# 创建长字段
@shixun.shixun_info.create!(description: "")
ShixunInfo.create!(shixun_id: @shixun.id)
# 创建版本库
repo_path = repo_namespace(current_user.login, identifier)
GitService.add_repository(repo_path: repo_path)

Loading…
Cancel
Save