|
|
|
@ -50,8 +50,11 @@ class ExaminationBanksController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
|
@exam.destroy!
|
|
|
|
|
render_ok
|
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
|
ApplyAction.where(container_type: "ExaminationBank", container_id: @exam.id).destroy_all
|
|
|
|
|
@exam.destroy!
|
|
|
|
|
render_ok
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def set_public
|
|
|
|
|