Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save barelyknown/f1fe5387b0c6aee41ab6 to your computer and use it in GitHub Desktop.

Select an option

Save barelyknown/f1fe5387b0c6aee41ab6 to your computer and use it in GitHub Desktop.
authenticate-in-ember-using-a-url-parameter-4.js
import ApplicationController from './application';
ApplicationController.reopen({
unsetToken: Ember.observer('token', function() {
if (this.get('token')) {
Ember.run.next(this, function() {
this.set('token', null);
});
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment