summaryrefslogtreecommitdiff
path: root/app/serializers/deployment_entity_detailed.rb
blob: 63df61dd51b6a2362bceda77d717bd77e7b07fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class DeploymentEntityDetailed < DeploymentEntity
  expose :ref do
    expose :ref_path do |deployment|
      namespace_project_tree_path(
        deployment.project.namespace,
        deployment.project,
        id: deployment.ref)
    end
  end

  expose :user, using: UserEntity
  expose :commit, using: CommitEntity
  expose :deployable, using: BuildEntity
  expose :manual_actions, using: BuildEntity
end