Skip to content

Commit

Permalink
use eager load
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsentwined committed Oct 10, 2013
1 parent 791fa30 commit cd72b2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/initializer.em
Expand Up @@ -7,3 +7,11 @@ Em.onLoad 'Ember.Application', (application) ->
app.register 'authSession:dummy', Em.Auth.DummyAuthSession, \
{ singleton: true }
app.inject 'authSession:dummy', 'auth', 'auth:main'

application.initializer
name: 'ember-auth.session.dummy-load'
after: 'ember-auth-load'

initialize: (container, app) ->
# force init() call wth an eager-load
container.lookup 'authSession:dummy'

0 comments on commit cd72b2c

Please sign in to comment.