Sha256: 9b15eb97437fc412ae96d1f601f2f358fd6cd3a09d52bb9b48c2dd0d77ba1d68

Contents?: true

Size: 742 Bytes

Versions: 15

Compression:

Stored size: 742 Bytes

Contents

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

attributes *product_attributes

node(:display_price) { |p| p.display_price.to_s }
node(:has_variants) { |p| p.has_variants? }
node(:taxon_ids) { |p| p.taxon_ids }

child :master => :master do
  extends "spree/api/variants/small"
end

child :variants => :variants do
  extends "spree/api/variants/small"
end

child :option_types => :option_types do
  attributes *option_type_attributes
end

child :product_properties => :product_properties do
  attributes *product_property_attributes
end

child :classifications => :classifications do
  attributes :taxon_id, :position

  child(:taxon) do
    extends "spree/api/taxons/show"
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_api-3.0.10 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.9 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.8 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.7 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.6.1 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.6 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.5 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.4 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.3 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.2 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.1 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.0 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.0.rc4 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.0.rc3 app/views/spree/api/products/show.v1.rabl
spree_api-3.0.0.rc1 app/views/spree/api/products/show.v1.rabl