X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a59152e34814f453a7380e68a55534e2f8922d57..e4f96fc61cd9c85f91bdb0020bc365f2f4825ffb:/apps/workbench/app/models/collection.rb diff --git a/apps/workbench/app/models/collection.rb b/apps/workbench/app/models/collection.rb index ee3a7883e3..6bc55bde3d 100644 --- a/apps/workbench/app/models/collection.rb +++ b/apps/workbench/app/models/collection.rb @@ -1,4 +1,5 @@ -class Collection < OrvosBase +class Collection < ArvadosBase + def total_bytes if files tot = 0 @@ -8,4 +9,21 @@ class Collection < OrvosBase tot end end + + def attribute_editable?(attr) + 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