Qsupplier.App.ApplicationController = Ember.Controller.extend
  active_section: null
  init: ->
    #success = (supplier)=>
      ## A supplier record with id current and with the content of the returned supplier is created
      ## at the moment remove the dummy supplier, this should be resolved by Ember eventually
      #if error_supplier = @store.all('supplier').findBy('id', 'current')
        #error_supplier.eraseRecord()
      #@set 'supplier', supplier

    #error = (emberError)=>
      #if error_supplier = @store.all('supplier').findBy('id', 'current')
        #error_supplier.eraseRecord()
      #@set 'supplier', null
    #@store.find('supplier', 'current').then success, error
    # @set 'supplier', @store.find('supplier', supplier_id)
