Use model property instead of content on controllers

This commit is contained in:
Piotr Sarnacki 2014-12-30 11:19:38 +01:00
parent 820c4b8377
commit 15283b0294

View File

@ -18,7 +18,7 @@ Travis.Route = Ember.Route.extend
@_super.apply(this, arguments) @_super.apply(this, arguments)
signedIn: -> signedIn: ->
@controllerFor('currentUser').get('content') @controllerFor('currentUser').get('model')
needsAuth: (-> needsAuth: (->
# on pro, we need to auth on every route # on pro, we need to auth on every route
@ -237,7 +237,7 @@ Travis.AbstractBuildsRoute = Travis.Route.extend
contentDidChange: -> contentDidChange: ->
path = @get('path') path = @get('path')
@controllerFor('builds').set('content', @controllerFor('repo').get(path)) @controllerFor('builds').set('model', @controllerFor('repo').get(path))
path: (-> path: (->
type = @get('contentType') type = @get('contentType')