X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e7973cab8f9fc9531e4d928e73928e6eab022f48..9b61792d905324a98b24224d45347082efbe5205:/apps/workbench/app/models/collection.rb diff --git a/apps/workbench/app/models/collection.rb b/apps/workbench/app/models/collection.rb index edd87add19..1bd711be64 100644 --- a/apps/workbench/app/models/collection.rb +++ b/apps/workbench/app/models/collection.rb @@ -66,16 +66,8 @@ class Collection < ArvadosBase dir_to_tree.call('.') end - def attribute_editable? attr, *args - if %w(name description manifest_text).include? attr.to_s - true - else - super - end - end - - def self.creatable? - false + def editable_attributes + %w(name description manifest_text) end def provenance @@ -94,20 +86,12 @@ class Collection < ArvadosBase end end - def portable_data_hash - if self[:portable_data_hash].nil? - return self[:uuid] - else - super - end + def friendly_link_name lookup=nil + name || portable_data_hash end - def friendly_link_name - if self.respond_to? :name - self.name - else - self.portable_data_hash - end + def textile_attributes + [ 'description' ] end end