Sha256: 1fe887fa1c192af915544444da7fc60157427118c80f985d296d76360372c82e

Contents?: true

Size: 350 Bytes

Versions: 16

Compression:

Stored size: 350 Bytes

Contents

json.files [@upload] do |uploaded_file|
  json.id uploaded_file.id
  json.name uploaded_file.file.file.filename
  json.size uploaded_file.file.file.size
  # TODO: implement these
  # json.url  "/uploads/#{uploaded_file.id}"
  # json.thumbnail_url uploaded_file.id
  json.deleteUrl sufia.polymorphic_path(uploaded_file)
  json.deleteType 'DELETE'
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 app/views/sufia/uploads/create.json.jbuilder
sufia-7.4.0 app/views/sufia/uploads/create.json.jbuilder
sufia-7.3.1 app/views/sufia/uploads/create.json.jbuilder
sufia-7.3.0 app/views/sufia/uploads/create.json.jbuilder
sufia-7.3.0.rc3 app/views/sufia/uploads/create.json.jbuilder
sufia-7.3.0.rc2 app/views/sufia/uploads/create.json.jbuilder
sufia-7.3.0.rc1 app/views/sufia/uploads/create.json.jbuilder
sufia-7.2.0 app/views/sufia/uploads/create.json.jbuilder
sufia-7.1.0 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0.rc2 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0.rc1 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0.beta4 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0.beta3 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0.beta2 app/views/sufia/uploads/create.json.jbuilder
sufia-7.0.0.beta1 app/views/sufia/uploads/create.json.jbuilder