Sha256: d7e03ef32eab2171d68b75ed87e336cb7c67b1c491da70748dc2086fdb6a58ae

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

object @variant
attributes *variant_attributes

cache ['big_variant', root_object]

extends "spree/api/variants/small"

child(:stock_items => :stock_items) do
  attributes :id, :count_on_hand, :stock_location_id, :backorderable
  attribute :available? => :available

  glue(:stock_location) do
    attribute :name => :stock_location_name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_api-2.2.2 app/views/spree/api/variants/big.v1.rabl
spree_api-2.2.1 app/views/spree/api/variants/big.v1.rabl