destroying.rb revision 28042dd9ac50a328466a3dd0464b6e26a7c8796d
included do
end
# Only use `destroy_asynchronously` if you want to destroy a repository.
# It prepares the deletion by setting a flag, which enables the deletion
# of its ontologies.
Rails.logger.info "Destroy #{self.class} #{self} (id: #{id})"
rescue StandardError => e
self.destroying = false
save!
end
end
Rails.logger.info "Mark #{self.class} #{self} (id: #{id}) as is_destroying"
self.is_destroying = true
save!
end
end
end