summaryrefslogtreecommitdiff
path: root/app/serializers/build_action_entity.rb
blob: 184b4b7a6813eff1467842733230534d2d37c029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class BuildActionEntity < Grape::Entity
  include RequestAwareEntity

  expose :name do |build|
    build.name
  end

  expose :path do |build|
    play_namespace_project_build_path(
      build.project.namespace,
      build.project,
      build)
  end

  expose :playable?, as: :playable
end