X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e7973cab8f9fc9531e4d928e73928e6eab022f48..51e79a3be745cfd37efc49471ae21a1d54662e7f:/apps/workbench/app/models/collection.rb diff --git a/apps/workbench/app/models/collection.rb b/apps/workbench/app/models/collection.rb index edd87add19..b5347dce00 100644 --- a/apps/workbench/app/models/collection.rb +++ b/apps/workbench/app/models/collection.rb @@ -66,12 +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 + def editable_attributes + %w(name description manifest_text) end def self.creatable? @@ -102,7 +98,7 @@ class Collection < ArvadosBase end end - def friendly_link_name + def friendly_link_name lookup=nil if self.respond_to? :name self.name else @@ -110,4 +106,8 @@ class Collection < ArvadosBase end end + def textile_attributes + [ 'description' ] + end + end