Sha256: ffa69db89f74a618d4fe1f08d1c640302ec82df0235e81f981a77adb4c0eec0c

Contents?: true

Size: 159 Bytes

Versions: 3

Compression:

Stored size: 159 Bytes

Contents

json.cache! @products do
  json.array! @products do |product|
    json.(product, :id, :tb_commerce_category_id, :title, :description, :price, :slug)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 app/views/tb_commerce/api/products/index.json.jbuilder
tb_commerce-0.0.3 app/views/tb_commerce/api/products/index.json.jbuilder
tb_commerce-0.0.2 app/views/tb_commerce/api/products/index.json.jbuilder