db/samples/stock.rb in solidus_sample-1.2.3 vs db/samples/stock.rb in solidus_sample-1.3.0.beta1
- old
+ new
@@ -5,8 +5,8 @@
location.active = true
location.save!
Spree::Variant.all.each do |variant|
variant.stock_items.each do |stock_item|
- Spree::StockMovement.create(:quantity => 10, :stock_item => stock_item)
+ Spree::StockMovement.create(quantity: 10, stock_item: stock_item)
end
end