Sha256: 34119e5b14dba0dee4a090dd8227ecc57bfc7ce7f711d13eaac410509ee1e365

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_api-2.4.0.rc2 app/views/spree/api/products/show.v1.rabl
spree_api-2.4.0.rc1 app/views/spree/api/products/show.v1.rabl