Commit c4441c62 authored by Shinya Maeda's avatar Shinya Maeda

Use superclass represent

parent 9d56cb6a
class BuildSerializer < BaseSerializer class BuildSerializer < BaseSerializer
entity BuildEntity entity BuildEntity
def represent(resource, opts = {})
super(resource, opts)
end
def represent_status(resource) def represent_status(resource)
data = represent(resource, { only: [:status] }) data = represent(resource, { only: [:status] })
data.fetch(:status, {}) data.fetch(:status, {})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment