Remove duplicated function in job's serializer
This commit is contained in:
parent
679d5227b3
commit
4d73d67f51
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user