X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8974e10fe2dbf643861f75cffa0fba9a6db972c8..434dee9ff1b42d7169fbd9368263e6a0f5c40bed:/apps/workbench/app/models/container.rb diff --git a/apps/workbench/app/models/container.rb b/apps/workbench/app/models/container.rb index b52313280a..8de28ae41f 100644 --- a/apps/workbench/app/models/container.rb +++ b/apps/workbench/app/models/container.rb @@ -1,5 +1,13 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class Container < ArvadosBase - def work_unit(label=nil) - ContainerWorkUnit.new(self, label) + def self.creatable? + false + end + + def work_unit(label=nil, child_objects=nil) + ContainerWorkUnit.new(self, label, self.uuid, child_objects=child_objects) end end