No need to specify path when path is the same as name

This commit is contained in:
Piotr Sarnacki 2014-12-23 12:12:04 +01:00
parent 9d4146f155
commit b771f79587

View File

@ -52,8 +52,8 @@ Travis.ApplicationRoute = Travis.Route.extend
Travis.Router.map ->
@resource 'index', path: '/', ->
@resource 'getting_started'
@route 'recent', path: '/recent'
@route 'my_repositories', path: '/my_repositories'
@route 'recent'
@route 'my_repositories'
@resource 'repo', path: '/:owner/:name', ->
@route 'index', path: '/'
@resource 'build', path: '/builds/:build_id'
@ -166,7 +166,6 @@ Travis.IndexTabRoute = Travis.Route.extend
@currentRepoDidChange()
@controllerFor('repos').addObserver('firstObject', this, 'currentRepoDidChange')
deactivate: ->
@controllerFor('repos').removeObserver('firstObject', this, 'currentRepoDidChange')