Properly serialize env var

This commit is contained in:
Piotr Sarnacki 2015-12-17 13:12:56 +01:00
parent fdd7b5b91b
commit e170753ba8

View File

@ -9,4 +9,8 @@ Serializer = ApplicationSerializer.extend
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`