Merge branch '11095-cwl-control-reuse' closes #11095
[arvados.git] / apps / workbench / app / models / container.rb
index b52313280a3611577e325145c76a8ee2ae2e2b0f..cf1de691c30af579c54905e42081f9417587c09f 100644 (file)
@@ -1,5 +1,9 @@
 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