Sha256: 5008b217f8c66578f18ae89b5fce0aa7357961f1bd86b189b8eca679d60cb5a5

Contents?: true

Size: 457 Bytes

Versions: 14

Compression:

Stored size: 457 Bytes

Contents

object @variant
attributes *variant_attributes

cache [I18n.locale, @current_user_roles.include?('admin'), 'big_variant', root_object]

extends "spree/api/variants/small"

node :total_on_hand do
  root_object.total_on_hand
end


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

14 entries across 14 versions & 1 rubygems

Version Path
spree_api-3.0.0 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.6 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.5 app/views/spree/api/variants/big.v1.rabl
spree_api-3.0.0.rc4 app/views/spree/api/variants/big.v1.rabl
spree_api-3.0.0.rc3 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.4 app/views/spree/api/variants/big.v1.rabl
spree_api-3.0.0.rc1 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.3 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.2 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.1 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.0 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.0.rc3 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.0.rc2 app/views/spree/api/variants/big.v1.rabl
spree_api-2.4.0.rc1 app/views/spree/api/variants/big.v1.rabl