1 class Collection < ArvadosBase
2 include ApplicationHelper
4 MD5_EMPTY = 'd41d8cd98f00b204e9800998ecf8427e'
6 # Return true if the given string is the locator of a zero-length blob
7 def self.is_empty_blob_locator? locator
8 !!locator.to_s.match("^#{MD5_EMPTY}(\\+.*)?\$")
12 human_readable_bytes_html(total_bytes) + " " + super
25 def attribute_editable?(attr)
34 arvados_api_client.api "collections/#{self.uuid}/", "provenance"
38 arvados_api_client.api "collections/#{self.uuid}/", "used_by"