Sha256: 4a1141eed26d03bfd5a52952530d3a1d06995527a33a154941917605fd56905a

Contents?: true

Size: 363 Bytes

Versions: 101

Compression:

Stored size: 363 Bytes

Contents

object @variant

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

extends 'spree/api/v1/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

101 entries across 101 versions & 2 rubygems

Version Path
spree_api-3.7.14.1 app/views/spree/api/v1/variants/big.v1.rabl
spree_api-4.2.3.1 app/views/spree/api/v1/variants/big.rabl
spree_api-4.1.13.1 app/views/spree/api/v1/variants/big.rabl
spree_api-4.0.7.1 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.3 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.2 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.1 app/views/spree/api/v1/variants/big.rabl
spree_api-4.0.7 app/views/spree/api/v1/variants/big.rabl
spree_api-3.7.14 app/views/spree/api/v1/variants/big.v1.rabl
spree_api-4.2.0 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.0.rc5 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.0.rc4 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.0.rc3 app/views/spree/api/v1/variants/big.rabl
spree_api-4.1.13 app/views/spree/api/v1/variants/big.rabl
spree_api-4.0.6 app/views/spree/api/v1/variants/big.rabl
spree_api-4.2.0.rc2 app/views/spree/api/v1/variants/big.rabl
spree_api-3.7.13 app/views/spree/api/v1/variants/big.v1.rabl
spree_api-4.0.5 app/views/spree/api/v1/variants/big.rabl
spree_api-4.1.12 app/views/spree/api/v1/variants/big.rabl
spree_api-3.7.12 app/views/spree/api/v1/variants/big.v1.rabl