Globals = Ember.Object.extend
  current_employee: null
  current_supplier: null
  isDragging: false
  active_section: null
  flash_message: ''
  modal_active: false
  locale: Qstorage.getItem('locale')
App.initializer
  name: 'injectCurrent'
  initialize: (container, app)->
    #container.optionsForType 'globals', instantiate: false, singleton: true
    app.register 'global:variables', Globals, singleton: true

    app.inject 'controller', 'globals', 'global:variables'
    app.inject 'component', 'globals', 'global:variables'
    app.inject 'view', 'globals', 'global:variables'
    app.inject 'route', 'globals', 'global:variables'

    app.inject 'component', 'store', 'service:store'
