user ember progress

This commit is contained in:
2014-03-26 17:48:54 +01:00
parent 4e75c72097
commit 6af7dc74af
19 changed files with 129 additions and 35 deletions
@@ -1 +1,8 @@
App.List = Ember.Object.extend {}
attr = DS.attr
App.List = DS.Model.extend
orders: DS.hasMany('order')
needs_help: attr('boolean')
needs_payment: attr('boolean')
total: (->
@get('orders').getEach('total').reduce(((sum, total) -> sum + total), 0)
).property('orders.@each.total')