Sha256: 154774f90997b230d67e14681640e45ac80ca5fb35eb845fcce58e7d2d4938d1

Contents?: true

Size: 612 Bytes

Versions: 101

Compression:

Stored size: 612 Bytes

Contents

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

attributes *variant_attributes

node(:display_price) { |p| p.display_price.to_s }
node(:options_text, &:options_text)
node(:track_inventory, &:should_track_inventory?)
node(:in_stock, &:in_stock?)
node(:is_backorderable, &:is_backorderable?)
node(:is_orderable) { |v| v.is_backorderable? || v.in_stock? }
node(:total_on_hand, &:total_on_hand)
node(:is_destroyed, &:destroyed?)

child option_values: :option_values do
  attributes *option_value_attributes
end

child(images: :images) { extends 'spree/api/v1/images/show' }

Version data entries

101 entries across 101 versions & 2 rubygems

Version Path
spree_api-4.2.0.rc1 app/views/spree/api/v1/variants/small.rabl
spree_api-4.0.4 app/views/spree/api/v1/variants/small.rabl
spree_api-3.7.11 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-4.1.11 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.10 app/views/spree/api/v1/variants/small.rabl
spree_api-4.2.0.beta app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.9 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.8 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.7 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.6 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.5 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.4 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.3 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.2 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.1 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.0 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.0.rc3 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.0.rc2 app/views/spree/api/v1/variants/small.rabl
spree_api-4.1.0.rc1 app/views/spree/api/v1/variants/small.rabl
spree_api-3.4.6 app/views/spree/api/v1/variants/small.v1.rabl