Sha256: 4da80cc8736b983fa763d8c124c73124d73153a5180974d799888af4a68e9771
Contents?: true
Size: 940 Bytes
Versions: 4
Compression:
Stored size: 940 Bytes
Contents
json.cache! @category.cache_key, expires_in: 1.hour do json.id @category.id json.name @category.name json.slug @category.slug json.url category_url(@category) json.browser_title @category.browser_title json.meta_description @category.meta_description json.sorts @category.sorts json.sort @category.sort json.breadcrumbs @category.breadcrumbs do |taxon| json.partial! 'workarea/api/storefront/taxons/taxon', taxon: taxon end json.content_blocks @category.content.blocks do |block| json.partial! 'workarea/api/storefront/content_blocks/block', block: block end json.partial! 'workarea/api/storefront/shared/pagination', model: @category json.facets @category.facets do |facet| json.partial! "workarea/api/storefront/facets/#{facet.type}", facet: facet end json.products @category.products do |product| json.partial! 'workarea/api/storefront/products/product', product: product end end
Version data entries
4 entries across 4 versions & 2 rubygems