Skip to content

Instantly share code, notes, and snippets.

@joliss
Created June 12, 2012 16:13
Show Gist options
  • Save joliss/2918457 to your computer and use it in GitHub Desktop.
Save joliss/2918457 to your computer and use it in GitHub Desktop.
App.current_user implementation
window.App = Ember.Application.create
currentUser: Ember.computed(->
App.store.find(App.User, App.getPath('infoData.currentUserId'))
).property('infoData.currentUserId')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment