This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |