17 lines
497 B
CoffeeScript
17 lines
497 B
CoffeeScript
`import Ember from 'ember'`
|
|
`import ApplicationSerializer from 'travis/serializers/application'`
|
|
|
|
Serializer = ApplicationSerializer.extend
|
|
attrs: {
|
|
repo: { key: 'repository_id' }
|
|
}
|
|
|
|
serialize: (snapshot, options) ->
|
|
return { env_var: this._super(snapshot, options) }
|
|
|
|
normalizeSingleResponse: (store, primaryModelClass, payload, id, requestType) ->
|
|
payload = payload.env_var;
|
|
return @_super(store, primaryModelClass, payload, id, requestType)
|
|
|
|
`export default Serializer`
|