Use superclass represent
This commit is contained in:
parent
9d56cb6a0d
commit
c4441c623e
1 changed files with 0 additions and 4 deletions
|
@ -1,10 +1,6 @@
|
|||
class BuildSerializer < BaseSerializer
|
||||
entity BuildEntity
|
||||
|
||||
def represent(resource, opts = {})
|
||||
super(resource, opts)
|
||||
end
|
||||
|
||||
def represent_status(resource)
|
||||
data = represent(resource, { only: [:status] })
|
||||
data.fetch(:status, {})
|
||||
|
|
Loading…
Reference in a new issue