Sha256: 4fcf2bb407cb1ae56bca9423d787fa310f6e6db10aaadd77ff0540e79327ddab

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

json.cache! [category, current_store, json_options, params[:page], params[:per]] do
  json.(category, :id, :magento_id, :name, :url_key, :parent_id, :position, :is_active, :include_in_menu, :created_at, :updated_at)

  if json_options[:include_products]
    json.products do |json|
      json.array! products, partial: 'gemgento/products/product', as: :product
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/views/gemgento/categories/_category.json.jbuilder