Speccing and fixing user list loading and adding orders to other users

This commit is contained in:
2014-08-28 18:07:30 +02:00
parent af4510cdc6
commit 14791df379
9 changed files with 66 additions and 1 deletions
+2 -1
View File
@@ -273,7 +273,8 @@ class List
save
broadcast_users 'new_order', order: order.with_products_as_json, total_amount: price
# broadcast_users 'new_order', order: order.with_products_as_json, total_amount: price
broadcast_users 'new_order', OrderSerializer.new(order).as_json
broadcast_users 'orders_placed_count', count: orders_placed_count
broadcast_supplier supplier.id, 'list_update', SupplierListSerializer.new(self).as_json