Sha256: 45e0933aa24698a624b278e78204aeec585db5004f0bbc4602518d7407c67305

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

json.cache! @page.cache_key, expires_in: 1.hour do
  json.id @page.id
  json.name @page.name
  json.url page_url(@page)

  json.browser_title @page.browser_title
  json.meta_description @page.meta_description

  json.breadcrumbs @page.breadcrumbs do |taxon|
    json.partial! 'workarea/api/storefront/taxons/taxon', taxon: taxon
  end

  json.content_blocks @page.content.blocks.select(&:active?) do |block|
    json.partial! 'workarea/api/storefront/content_blocks/block', block: block
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
workarea-api-4.5.6 storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-storefront-4.5.6 app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-4.5.5 storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-storefront-4.5.5 app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-4.5.4 storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-storefront-4.5.4 app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-4.5.3 storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-storefront-4.5.3 app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-4.5.2 storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-storefront-4.5.2 app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-4.5.0 storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder
workarea-api-storefront-4.5.0 app/views/workarea/api/storefront/pages/show.json.jbuilder