user ember progress
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user