storefront/app/views/workarea/api/storefront/menus/_menu.json.jbuilder in workarea-api-4.4.7 vs storefront/app/views/workarea/api/storefront/menus/_menu.json.jbuilder in workarea-api-4.5.0
- old
+ new
@@ -3,9 +3,9 @@
json.name menu.name
json.position menu.position
json.url menu_path(menu)
json.taxon_url menu.taxon.url.presence || storefront_api_url_for(menu.taxon)
- json.content_blocks menu.content.blocks do |block|
+ json.content_blocks menu.content.blocks.select(&:active?) do |block|
json.partial! 'workarea/api/storefront/content_blocks/block', block: block
end
end