app/views/spree/api/variants/big_variant.v1.rabl in spree_api-2.1.4 vs app/views/spree/api/variants/big_variant.v1.rabl in spree_api-2.1.5
- old
+ new
@@ -1,19 +1,19 @@
object @variant
cache @variant
-attributes *variant_attributes
extends "spree/api/variants/variant"
+
child(:images => :images) do
attributes *image_attributes
code(:urls) do |v|
v.attachment.styles.keys.inject({}) { |urls, style| urls[style] = v.attachment.url(style); urls }
end
end
-child(:stock_items) do
+child(:stock_items => :stock_items) do
attributes :id, :count_on_hand, :stock_location_id, :backorderable
attribute :available? => :available
glue(:stock_location) do
attribute :name => :stock_location_name
end
-end
\ No newline at end of file
+end