Skip to content

Commit

Permalink
expose the sessin stores by merging them into the app
Browse files Browse the repository at this point in the history
…instead of having a custom initializer that does the same thing
  • Loading branch information
marcoow committed Oct 16, 2015
1 parent c1c569a commit b9cff09
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 44 deletions.
9 changes: 0 additions & 9 deletions addon/initializers/setup-session-stores.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/initializers/ember-simple-auth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Ember from 'ember';
import ENV from '../config/environment';
import Configuration from 'ember-simple-auth/configuration';
import setupSessionStores from 'ember-simple-auth/initializers/setup-session-stores';
import setupSession from 'ember-simple-auth/initializers/setup-session';
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service';

Expand All @@ -12,7 +11,6 @@ export default {
config.baseURL = ENV.baseURL;
Configuration.load(config);

setupSessionStores(registry);
setupSession(registry);
setupSessionService(registry);
}
Expand Down
3 changes: 3 additions & 0 deletions app/session-stores/cookie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CookieStore from 'ember-simple-auth/stores/cookie';

export default CookieStore;
3 changes: 3 additions & 0 deletions app/session-stores/ephemeral.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import EphemeralStore from 'ember-simple-auth/stores/ephemeral';

export default EphemeralStore;
3 changes: 3 additions & 0 deletions app/session-stores/local-storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import LocalStorageStore from 'ember-simple-auth/stores/local-storage';

export default LocalStorageStore;
33 changes: 0 additions & 33 deletions tests/unit/initializers/setup-session-stores-test.js

This file was deleted.

0 comments on commit b9cff09

Please sign in to comment.