|
|
|
@ -50,9 +50,12 @@ class ExaminationBanksController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
|
ApplyAction.where(container_type: "ExaminationBank", container_id: @exam.id).destroy_all
|
|
|
|
|
@exam.destroy!
|
|
|
|
|
render_ok
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def set_public
|
|
|
|
|
tip_exception(-1, "该试卷已公开") if @exam.public?
|
|
|
|
|