Sha256: 93418b7525abbb382361bfe7c85510252764ede03fcb4ec1b29f9411aeea7380
Contents?: true
Size: 319 Bytes
Versions: 23
Compression:
Stored size: 319 Bytes
Contents
# create the inventory units associated with the line item (we need to do this after the fixture b/c quantity is random) Spree::LineItem.all.each do |li| li.quantity.times { li.order.inventory_units.create({:variant => li.variant, :state => 'sold', :shipment => li.order.shipment}, :without_protection => true) } end
Version data entries
23 entries across 23 versions & 2 rubygems