'build_id' should be returned in build's params, not 'id'

This commit is contained in:
Piotr Sarnacki 2012-09-28 17:20:52 +02:00
parent ab8473e75e
commit 4984a896af
3 changed files with 1518 additions and 1517 deletions

View File

@ -177,11 +177,12 @@ Travis.Router = Ember.Router.extend
serialize: (router, build) ->
if build.get
{ id: build.get('id') }
{ build_id: build.get('id') }
else
{ id: build }
{ build_id: build }
deserialize: (router, params) ->
console.log 'BUILD'
# Something is wrong here. If I don't use deferred, id is not
# initialized and url ends up being /jobs/null
# This should not be needed, as id should be immediately set on the

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff