Sha256: fdd25d9ea5c065f0347bb88e4f95205876aa4b4258553a72d108d8c615b1ba9e

Contents?: true

Size: 482 Bytes

Versions: 13

Compression:

Stored size: 482 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(root_object.stock_items.accessible_by(current_ability) => :stock_items) do
  attributes :id, :count_on_hand, :stock_location_id, :backorderable
  attribute :available? => :available
  node(:stock_location_name) { |si| si.stock_location.name }
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
solidus_api-1.0.7 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.6 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.5 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.4 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.3 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.2 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.1 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.0 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.0.rc2 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.0.rc1 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.0.pre3 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.0.pre2 app/views/spree/api/variants/big.v1.rabl
solidus_api-1.0.0.pre app/views/spree/api/variants/big.v1.rabl