Sha256: 0f8ae494e9cdfb3ca0dfd7922c2cdcfe722e796acab99e50a86ff73283ba26c1

Contents?: true

Size: 424 Bytes

Versions: 351

Compression:

Stored size: 424 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 d.author.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

351 entries across 187 versions & 1 rubygems

Version Path
educode_sales-1.10.35 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.35 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/upload_files/index.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/upload_files/index.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/upload_files/index.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/upload_files/index.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/upload_files/index.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/activities/files.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/ideas/files.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/upload_files/index.json.jbuilder