Skip to content

Instantly share code, notes, and snippets.

View ninegrid's full-sized avatar

Daniel Jackson ninegrid

  • ⋮ ⋮ ⋮
  • 30.2669° N, 97.7428° W
View GitHub Profile
sessionInvalidationSucceeded: function() {
this.transitionTo(Ember.SimpleAuth.routeAfterInvalidation);
// unload all store data on logout
var store = this.container.lookup('store:main');
var typeMaps = store.get('typeMaps');
Ember.keys(typeMaps).forEach(function(type) {
var key = typeMaps[type].type;
store.unloadAll(key);