gitlab-org--gitlab-foss/app/serializers/pipeline_action_entity.rb

15 lines
269 B
Ruby
Raw Normal View History

class PipelineActionEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
build.name.humanize
end
expose :url do |build|
play_namespace_project_build_path(
2016-11-10 11:50:55 -05:00
build.project.namespace,
build.project,
build)
end
end