Sha256: 1626992f1cc9e35887074000dbbdefd51a88510b9473a6a41b07c9806638f893
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
json.data do json.array! @files do |d| json.id d.id json.name d.filename json.size d.filesize < 1000000 ? (d.filesize.to_f / 1000).round(2).to_s + 'KB' : (d.filesize.to_f / 1000000).round(2).to_s + 'MB' json.created_on d.created_on.to_s json.upload_person EducodeSales::Staff.find(d.author_id).user.real_name json.disk_filename d.disk_filename json.content_type d.content_type end end json.code 0 json.count @files.total_count
Version data entries
3 entries across 3 versions & 1 rubygems