Fix some failing spec

This commit is contained in:
2014-11-27 20:16:30 +01:00
parent 3bc1e5685c
commit c36c88bc15
6 changed files with 14 additions and 14 deletions
@@ -2,5 +2,6 @@ App.modals.CloseListController = App.modals.BaseController.extend
title_path: 'list.close.modal.title'
actions:
confirm: ->
@get('model').then (l)->l.close()
model = @get('model')
if model.then then model.then((l) -> l.close()) else model.close()
@send 'closeModal'
@@ -10,7 +10,7 @@ App.ProductCategory = DS.Model.extend
active_on_thursday: attr('boolean')
active_on_friday: attr('boolean')
active_on_saturday: attr('boolean')
full_day: attr('boolean')
full_day: attr 'boolean', defaultValue: true
start_from: attr('number')
end_on: attr('number')
position: attr('number')