Sha256: ddbf0fc2262d826e13721a2c670da0b158a76456021ef2a8413cf6c5ac72bc59

Contents?: true

Size: 654 Bytes

Versions: 24

Compression:

Stored size: 654 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) { |v| v.options_text }
node(:track_inventory) { |v| v.should_track_inventory? }
node(:in_stock) { |v| v.in_stock? }
node(:is_backorderable) { |v| v.is_backorderable? }
node(:is_orderable) { |v| v.is_backorderable? || v.in_stock? }
node(:total_on_hand) { |v| v.total_on_hand }
node(:is_destroyed) { |v| v.destroyed? }

child option_values: :option_values do
  attributes *option_value_attributes
end

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_api-3.2.9 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.6 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.8 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.5 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.4 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.7 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.3 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.6 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.2 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.5 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.1 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.4 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.0 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.0.rc4 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.0.rc3 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.3 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.2 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.0.rc2 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.3.0.rc1 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.2.1 app/views/spree/api/v1/variants/small.v1.rabl