Sha256: 80de089be9d1ab5ace16139bb8e38373af35dac22e367d54fd96f186cbdbd4fd

Contents?: true

Size: 361 Bytes

Versions: 26

Compression:

Stored size: 361 Bytes

Contents

object @variant
attributes *variant_attributes

cache [I18n.locale, '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

26 entries across 26 versions & 1 rubygems

Version Path
spree_api-2.3.2 app/views/spree/api/variants/big.v1.rabl
spree_api-2.2.5 app/views/spree/api/variants/big.v1.rabl
spree_api-2.3.1 app/views/spree/api/variants/big.v1.rabl
spree_api-2.2.4 app/views/spree/api/variants/big.v1.rabl
spree_api-2.2.3 app/views/spree/api/variants/big.v1.rabl
spree_api-2.3.0 app/views/spree/api/variants/big.v1.rabl