projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use class_for_display more.
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
arvados_resource_list.rb
diff --git
a/apps/workbench/app/models/arvados_resource_list.rb
b/apps/workbench/app/models/arvados_resource_list.rb
index ba3f0a05bfac9b6336f20b15a9af4807e78647af..d585b3ca9df22afad4314c056341be9398e2cf8f 100644
(file)
--- a/
apps/workbench/app/models/arvados_resource_list.rb
+++ b/
apps/workbench/app/models/arvados_resource_list.rb
@@
-90,6
+90,12
@@
class ArvadosResourceList
self
end
self
end
+ def collect
+ results.collect do |m|
+ yield m
+ end
+ end
+
def first
results.first
end
def first
results.first
end
@@
-158,8
+164,9
@@
class ArvadosResourceList
end
end
end
end
- def name_for item_or_uuid
- links_for(item_or_uuid, 'name').first.name
+ # Note: this arbitrarily chooses one of (possibly) multiple names.
+ def names_for item_or_uuid
+ links_for(item_or_uuid, 'name').first.andand.name
end
end
end
end