Skip to content

Instantly share code, notes, and snippets.

@CodeOfficer
Created March 19, 2014 04:14
Show Gist options
  • Save CodeOfficer/9635335 to your computer and use it in GitHub Desktop.
Save CodeOfficer/9635335 to your computer and use it in GitHub Desktop.
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);
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment