重置实训

dev_aliyun2
daiao 5 years ago committed by harry
parent f1e5e76405
commit 06c6d67030

@ -22,8 +22,8 @@ class MyshixunsController < ApplicationController
tip_exception("403", "")
end
begin
@shixun = Shixun.select(:id, :identifier, :challenges_count).find(@myshixun.shixun_id)
ActiveRecord::Base.transaction do
@shixun = Shixun.select(:id, :identifier, :challenges_count).find(@myshixun.shixun_id)
@myshixun.destroy!
StudentWork.where(:myshixun_id => @myshixun.id)

Loading…
Cancel
Save