     [owner, name] = slug.split('/')
     { owner: owner, name: name }
 
-  deserialize: (params) ->
+  model: (params) ->
     slug = "#{params.owner}/#{params.name}"
     content = Ember.Object.create slug: slug, isLoaded: false, isLoading: true
     proxy = Ember.ObjectProxy.create(content: content)

    @controllerFor('build').set('build', model)
    repo.set('build', model)

Travis.JobRoute = Ember.Route.extend Travis.DontSetupModelForControllerMixin,
  renderTemplate: ->
    @render 'job', outlet: 'pane', into: 'repo'


Travis.PullRequestsRoute = Travis.AbstractBuildsRoute.extend(contentType: 'pull_requests')
Travis.BranchesRoute = Travis.AbstractBuildsRoute.extend(contentType: 'branches')

Travis.BuildRoute = Ember.Route.extend
  renderTemplate: ->
    @render 'build', outlet: 'pane', into: 'repo'

