Use V2FallbackSerializer for jobs

This commit is contained in:
Piotr Sarnacki 2015-11-10 09:58:59 +01:00
parent c40e413f35
commit 3946077c96

View File

@ -1,7 +1,8 @@
`import Ember from 'ember'`
`import ApplicationSerializer from 'travis/serializers/application'`
`import V2FallbackSerializer from 'travis/serializers/v2_fallback'`
Serializer = ApplicationSerializer.extend
Serializer = V2FallbackSerializer.extend
isNewSerializerAPI: true
attrs: {
repo: { key: 'repository_id' }
_config: { key: 'config' }
@ -15,4 +16,10 @@ Serializer = ApplicationSerializer.extend
@_super(store, primaryType, rawPayload, recordId)
keyForV2Relationship: (key, typeClass, method) ->
if key == 'repo'
'repository_id'
else
@_super.apply(this, arguments)
`export default Serializer`