Workbench is able to put together a graph from the provenance document served by...
[arvados.git] / apps / workbench / app / models / collection.rb
index cfbb6405041a41f5efb0de50f11ab6dbbf179835..94a2b959164200e874869a8f15b6e9724e04b7c3 100644 (file)
@@ -12,4 +12,8 @@ class Collection < ArvadosBase
   def attribute_editable?(attr)
     false
   end
+
+  def provenance
+    $arvados_api_client.api "collections/#{self.uuid}/", "provenance"
+  end
 end