Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Forked from ahawkins/user.js
Created February 13, 2011 03:10
Show Gist options
  • Save gmoeck/824392 to your computer and use it in GitHub Desktop.
Save gmoeck/824392 to your computer and use it in GitHub Desktop.
Chatter.userController = SC.ObjectController.create(
/** @scope Chatter.userController.prototype */ {
loggedInAs: function(){
var user = this.get('content');
return "Logged in as " + user.get('name');
}.property('name').cacheable()
}) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment