02c7dcf6b2
[ci skip]
14 lines
267 B
Ruby
14 lines
267 B
Ruby
class BuildActionEntity < Grape::Entity
|
|
include RequestAwareEntity
|
|
|
|
expose :name do |build|
|
|
build.name.humanize
|
|
end
|
|
|
|
expose :path do |build|
|
|
play_namespace_project_build_path(
|
|
build.project.namespace,
|
|
build.project,
|
|
build)
|
|
end
|
|
end
|