Sha256: 75486f28880e89a3d2f0b59edb6e007ec79d5610c73565a0db2cff91844370d8

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

json.cache! @skus do
  json.array! @skus do |sku|
    json.cache! sku do
      json.(sku, :id, :sku, :stock)
      json.price number_to_currency(sku.price)
      json.images do
        json.array! sku.image_links do |image_link|
          json.(image_link.image, :id, :image_file_name)
          json.url image_link.image.image.url(:original)
        end
      end
    end
  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/skus.json.jbuilder
tb_commerce-0.0.3 app/views/tb_commerce/api/products/skus.json.jbuilder
tb_commerce-0.0.2 app/views/tb_commerce/api/products/skus.json.jbuilder