Sha256: dc116e1eec7c92f9f4bcb74314b2cbf570671009c9fad14f0d27e92bc56d721d

Contents?: true

Size: 594 Bytes

Versions: 33

Compression:

Stored size: 594 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/images/show" }

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
solidus_api-1.0.7 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.10 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.9 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.6 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.8 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.7 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.5 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.6.1 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.6 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.5 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.4 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.3 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.1.0.pre1 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.1.0.beta1 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.2 app/views/spree/api/variants/small.v1.rabl
spree_api-3.0.4 app/views/spree/api/variants/small.v1.rabl
spree_api-2.4.10 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.1 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.0 app/views/spree/api/variants/small.v1.rabl
solidus_api-1.0.0.rc2 app/views/spree/api/variants/small.v1.rabl