X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/31d298b5a3550b02d0f67c6e6110821cd078fbb2..e40fdedbc285a0fa6af16e41b5b4f72e46e9987d:/apps/workbench/app/models/collection.rb diff --git a/apps/workbench/app/models/collection.rb b/apps/workbench/app/models/collection.rb index 94a2b95916..6bc55bde3d 100644 --- a/apps/workbench/app/models/collection.rb +++ b/apps/workbench/app/models/collection.rb @@ -1,4 +1,5 @@ class Collection < ArvadosBase + def total_bytes if files tot = 0 @@ -13,7 +14,16 @@ class Collection < ArvadosBase false end + def self.creatable? + false + end + def provenance $arvados_api_client.api "collections/#{self.uuid}/", "provenance" end + + def used_by + $arvados_api_client.api "collections/#{self.uuid}/", "used_by" + end + end