projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use post method instead of get method when invoking the unsetup method from the api...
[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 cdd148c0371a297de2f874511e6bf3512a7281ac..6bc55bde3d21199fda4c31fa3143800d9b03c026 100644
(file)
--- a/
apps/workbench/app/models/collection.rb
+++ b/
apps/workbench/app/models/collection.rb
@@
-1,4
+1,5
@@
class Collection < ArvadosBase
class Collection < ArvadosBase
+
def total_bytes
if files
tot = 0
def total_bytes
if files
tot = 0
@@
-20,4
+21,9
@@
class Collection < ArvadosBase
def provenance
$arvados_api_client.api "collections/#{self.uuid}/", "provenance"
end
def provenance
$arvados_api_client.api "collections/#{self.uuid}/", "provenance"
end
+
+ def used_by
+ $arvados_api_client.api "collections/#{self.uuid}/", "used_by"
+ end
+
end
end