do not render attributes of non-owned objects with x-editable
[arvados.git] / apps / workbench / app / models / collection.rb
1 class Collection < ArvadosBase
2   def total_bytes
3     if files
4       tot = 0
5       files.each do |file|
6         tot += file[2]
7       end
8       tot
9     end
10   end
11
12   def attribute_editable?(attr)
13     false
14   end
15 end