From db314d5ee9c337779f61f5e36c10c7f5cad52f50 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 16 Jul 2019 14:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AE=9E=E8=AE=AD=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/shixuns_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 599be4cde..a11f1c526 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -501,8 +501,8 @@ class ShixunsController < ApplicationController # TODO: 目前实训只做软删除. def destroy - # apply_records = ApplyAction.where(container_id: @shixun.id, container_type: "ApplyShixun") - # apply_records.delete_all if apply_records + apply_records = ApplyAction.where(container_id: @shixun.id, container_type: "ApplyShixun") + apply_records.delete_all if apply_records # HomeworkCommonShixuns.where(shixun_id: @shixun).delete_all # @shixun.destroy @shixun.update_column(:status, -1)