Sha256: 3dd07a144385440c5115b2c2188a3c69a4429c16ba8b56b4bf9f92e73d0be080
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
json.type 'assets' json.id asset.id json.data do json.extract! asset, :position, :label, :file, :created_at, :updated_at, :url end json.relationships do if asset.asset_types.any? json.asset_types do json.array! asset.asset_types do |asset_type| json.type 'asset_types' json.id asset_type.id end end end json.store do json.type 'stores' json.id asset.store_id end json.asset_file do json.type 'asset_files' json.id asset.asset_file_id end end json.included do included_asset_types = json.array! asset.asset_types, partial: 'gemgento/shared/asset_type', as: :asset_type included_asset_file = json.array! [asset.asset_file], partial: 'gemgento/shared/asset_file', as: :asset_file included_asset_types + included_asset_file end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/views/gemgento/shared/_asset.json.jbuilder |