Remove duplicated function in job's serializer

This commit is contained in:
Piotr Sarnacki 2015-12-09 18:08:21 +01:00
parent 679d5227b3
commit 4d73d67f51

View File

@ -15,12 +15,6 @@ Serializer = V2FallbackSerializer.extend
else
@_super.apply(this, arguments)
keyForV2Relationship: (key, typeClass, method) ->
if key == 'repo'
'repository_id'
else
@_super.apply(this, arguments)
normalize: (modelClass, resourceHash) ->
if resourceHash.commit
resourceHash.commit['type'] = 'commit'