12902: Label CRs "Cancelled" if finalized with incomplete container.
[arvados.git] / apps / workbench / app / models / container_request.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class ContainerRequest < ArvadosBase
6   def self.creatable?
7     false
8   end
9
10   def textile_attributes
11     [ 'description' ]
12   end
13
14   def self.goes_in_projects?
15     true
16   end
17
18   def work_unit(label=nil, child_objects=nil)
19     ContainerWorkUnit.new(self, label, self.uuid, child_objects=child_objects)
20   end
21 end