Use superclass represent

This commit is contained in:
Shinya Maeda 2017-03-21 21:07:01 +09:00
parent 9d56cb6a0d
commit c4441c623e

View file

@ -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, {})