App.ModalConfirmController = Ember.ObjectController.extend
  actions:
    close: ->
      @get('model.cancel').call(@) if @get('model.cancel')
      @send 'closeModal'
    confirm: ->
      @get('model.ok').call(@)
      @send 'closeModal'
