Skip to content

Commit

Permalink
Override template correctly, closes #83
Browse files Browse the repository at this point in the history
  • Loading branch information
ryw committed Feb 13, 2014
1 parent 7dcd070 commit 1afc798
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/entry.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ AccountsEntry =
i18n.setLanguage appConfig.language

if appConfig.signUpTemplate
Router.routes = _.reject Router.routes, (e, i) ->
e.name is 'entrySignUp'

Router.map ->
@route 'signUp',
path: '/sign-up',
template: appConfig.signUpTemplate
signUpRoute = Router.routes['entrySignUp']
signUpRoute.template = appConfig.signUpTemplate

@AccountsEntry = AccountsEntry

0 comments on commit 1afc798

Please sign in to comment.