10079: add "parent" to work_unit to aid the child display
[arvados.git] / apps / workbench / app / models / job_work_unit.rb
index a0a7c8796ef1783f7c7aba1fcfb9f54b3cba5451..a3f13f388c9bff38d8f5450633b1e41d1fad338a 100644 (file)
@@ -71,8 +71,10 @@ class JobWorkUnit < ProxyWorkUnit
     get(:log)
   end
 
-  def output
-    get(:output)
+  def outputs
+    items = []
+    items << get(:output) if get(:output)
+    items
   end
 
   def can_cancel?