Sha256: ff88b2f61eb663ae59e1150e274abb1acfd30bed06034bccaa6ba8a733372089

Contents?: true

Size: 356 Bytes

Versions: 14

Compression:

Stored size: 356 Bytes

Contents

json.assets @assets do |asset|
  json.partial! 'asset', asset: asset

  json.links do
    json.url      media_path(asset)
    json.preview  asset.image? ? media_path(asset, style: :push_type_thumb) : image_path("push_type/icons-assets.svg##{ asset.kind }")
  end
end

json.meta do
  json.partial! 'push_type/api/shared/pagination', collection: @assets
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_api-0.12.1 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.12.0 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.12.0.beta.1 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.11.2 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.11.1 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.11.0.beta.2 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.11.0.beta.1 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.4 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.3 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.2 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.1 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.0 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.0.beta.5 app/views/push_type/api/assets/index.json.jbuilder
push_type_api-0.10.0.beta.3 app/views/push_type/api/assets/index.json.jbuilder