All specs green, ember transition successful
This commit is contained in:
@@ -9,7 +9,8 @@ Qsupplier.App.List = DS.Model.extend
|
||||
#has_active_orders: attr 'boolean'
|
||||
has_active_orders: (->
|
||||
return false unless @get('state') == 'active'
|
||||
!!@get('orders').filterProperty('state', 'active').length
|
||||
#!!@get('orders').filterProperty('state', 'active').length
|
||||
!!@get('orders').filter( (order) -> order.get('state') is 'active' or order.get('state') is 'placed').length
|
||||
).property('state', 'orders.@each.state')
|
||||
price: attr 'number'
|
||||
closed_at: DS.attr('date')
|
||||
|
||||
Reference in New Issue
Block a user