gitlab-org--gitlab-foss/app/serializers/build_serializer.rb
2017-03-23 17:11:49 +09:00

8 lines
184 B
Ruby

class BuildSerializer < BaseSerializer
entity BuildEntity
def represent_status(resource)
data = represent(resource, { only: [:status] })
data.fetch(:status, {})
end
end