No need to add renderFirstSync method
This commit is contained in:
parent
42becfc019
commit
cc8219ba7a
|
@ -8,9 +8,6 @@ Ember.Router.reopen
|
||||||
@_super(url)
|
@_super(url)
|
||||||
|
|
||||||
Travis.Route = Ember.Route.extend
|
Travis.Route = Ember.Route.extend
|
||||||
renderFirstSync: ->
|
|
||||||
@transitionTo 'first_sync'
|
|
||||||
|
|
||||||
beforeModel: (transition) ->
|
beforeModel: (transition) ->
|
||||||
@auth.autoSignIn() unless @signedIn()
|
@auth.autoSignIn() unless @signedIn()
|
||||||
|
|
||||||
|
@ -40,7 +37,7 @@ Travis.ApplicationRoute = Travis.Route.extend
|
||||||
return true
|
return true
|
||||||
|
|
||||||
renderFirstSync: ->
|
renderFirstSync: ->
|
||||||
@renderFirstSync()
|
@transitionTo 'first_sync'
|
||||||
|
|
||||||
afterSignIn: ->
|
afterSignIn: ->
|
||||||
if transition = @auth.get('afterSignInTransition')
|
if transition = @auth.get('afterSignInTransition')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user