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