Sha256: b7191da0815f0b650067dd73a960fd6fbc7d8b7fc3ba5a0ddce6ea9a564f2e2f

Contents?: true

Size: 597 Bytes

Versions: 19

Compression:

Stored size: 597 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(: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

19 entries across 19 versions & 1 rubygems

Version Path
spree_api-3.1.14 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.13 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.12 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.11 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.10 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.9 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.8 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.7 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.6 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.5 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.4 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.3 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.2 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.1 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.0 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.0.rc4 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.0.rc3 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.0.rc2 app/views/spree/api/v1/variants/small.v1.rabl
spree_api-3.1.0.rc1 app/views/spree/api/v1/variants/small.v1.rabl