Sha256: 98f4329bf00ec5918739787412c9fb33e8ca8afc3ddc2e1d2629ac192b216962
Contents?: true
Size: 693 Bytes
Versions: 34
Compression:
Stored size: 693 Bytes
Contents
json.partial!(partial: 'pageflow/files/file', object: file, locals: {file_type: file_type}) json.call(file, :state, :rights, :usage_id) json.retryable(file.retryable?) json.file_name(file.attachment.original_filename) if file.url.present? json.url(file.url) end if file.original_url.present? json.original_url(file.original_url) end if file_type.editor_partial.present? json.partial!(object: file, partial: file_type.editor_partial) end if file.respond_to?(:thumbnail_url) json.thumbnail_url(asset_path(file.thumbnail_url(:thumbnail))) json.link_thumbnail_url(asset_path(file.thumbnail_url(:link_thumbnail_large))) end
Version data entries
34 entries across 34 versions & 1 rubygems