Sha256: 24b87a7f0ba89bd55fed5a364880a6e443aa1717801f6f2ae1fcba92c34188c7

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 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(:in_stock) { |v| v.in_stock? }

child :option_values => :option_values do
  attributes *option_value_attributes
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_api-2.4.0.rc3 app/views/spree/api/variants/small.v1.rabl
spree_api-2.4.0.rc2 app/views/spree/api/variants/small.v1.rabl
spree_api-2.4.0.rc1 app/views/spree/api/variants/small.v1.rabl