Allow to override sign in and sign out callbacks on routes
This commit is contained in:
parent
eb065a0eee
commit
90ffeaf085
|
@ -49,6 +49,12 @@ Ember.Router.reopen
|
|||
# a better way (like "parent" resource for everything inside map)
|
||||
Ember.Route.reopen
|
||||
events:
|
||||
afterSignIn: (path) ->
|
||||
@afterSignIn(path)
|
||||
|
||||
afterSignOut: ->
|
||||
@afterSignOut()
|
||||
|
||||
afterSignIn: (path) ->
|
||||
@routeTo(path)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user