Sha256: 83dd786587f9990e9aac94eccd09542f179be911defceceb72367ab7d9a4defb

Contents?: true

Size: 705 Bytes

Versions: 39

Compression:

Stored size: 705 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? }

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

39 entries across 39 versions & 2 rubygems

Version Path
solidus_api-1.2.3 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.4 app/views/spree/api/products/show.v1.rabl
solidus_api-1.0.7 app/views/spree/api/products/show.v1.rabl
solidus_api-1.0.6 app/views/spree/api/products/show.v1.rabl
solidus_api-1.2.2 app/views/spree/api/products/show.v1.rabl
solidus_api-1.2.1 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.3 app/views/spree/api/products/show.v1.rabl
solidus_api-1.0.5 app/views/spree/api/products/show.v1.rabl
solidus_api-1.2.0 app/views/spree/api/products/show.v1.rabl
solidus_api-1.2.0.rc2 app/views/spree/api/products/show.v1.rabl
solidus_api-1.0.4 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.2 app/views/spree/api/products/show.v1.rabl
solidus_api-1.2.0.rc1 app/views/spree/api/products/show.v1.rabl
solidus_api-1.2.0.beta1 app/views/spree/api/products/show.v1.rabl
solidus_api-1.0.3 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.1 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.0 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.0.pre2 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.0.pre1 app/views/spree/api/products/show.v1.rabl
solidus_api-1.1.0.beta1 app/views/spree/api/products/show.v1.rabl