projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3824: Merge branch 'master' into 3824-crunch-container-setup
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
collection.rb
diff --git
a/apps/workbench/app/models/collection.rb
b/apps/workbench/app/models/collection.rb
index 40fd930e38a99ae453ff11e01defcedec35af5fb..b5347dce00f24c64a388baac1dd9011935ab99c9 100644
(file)
--- 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
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?
end
def self.creatable?
@@
-102,7
+98,7
@@
class Collection < ArvadosBase
end
end
end
end
- def friendly_link_name
+ def friendly_link_name
lookup=nil
if self.respond_to? :name
self.name
else
if self.respond_to? :name
self.name
else