'build_id' should be returned in build's params, not 'id'
This commit is contained in:
parent
ab8473e75e
commit
4984a896af
|
@ -177,11 +177,12 @@ Travis.Router = Ember.Router.extend
|
||||||
|
|
||||||
serialize: (router, build) ->
|
serialize: (router, build) ->
|
||||||
if build.get
|
if build.get
|
||||||
{ id: build.get('id') }
|
{ build_id: build.get('id') }
|
||||||
else
|
else
|
||||||
{ id: build }
|
{ build_id: build }
|
||||||
|
|
||||||
deserialize: (router, params) ->
|
deserialize: (router, params) ->
|
||||||
|
console.log 'BUILD'
|
||||||
# Something is wrong here. If I don't use deferred, id is not
|
# Something is wrong here. If I don't use deferred, id is not
|
||||||
# initialized and url ends up being /jobs/null
|
# initialized and url ends up being /jobs/null
|
||||||
# This should not be needed, as id should be immediately set on the
|
# 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
Loading…
Reference in New Issue
Block a user