You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.api.rsb 400B

1234567891011121314
  1. api.array :files do
  2. @containers.each do |container|
  3. container.attachments.each do |attachment|
  4. api.file do
  5. render_api_attachment_attributes(attachment, api)
  6. if container.is_a?(Version)
  7. api.version :id => container.id, :name => container.name
  8. end
  9. api.digest attachment.digest
  10. api.downloads attachment.downloads
  11. end
  12. end
  13. end
  14. end