Skip to content
Snippets Groups Projects
Commit c4441c62 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Use superclass represent

parent 9d56cb6a
No related branches found
No related tags found
1 merge request!9561Expose CI/CD status API endpoints with Gitlab::Ci::Status facility on pipeline, job and merge request for favicon
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, {})
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment