diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-20 12:58:31 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-20 12:58:31 +0300 |
commit | 446994610546bcb43d6ace34c1c28357de306b19 (patch) | |
tree | 483b50071292a5a87ce1fa0044cf8893de0132f8 /app/serializers/deployment_entity.rb | |
parent | 27cc95ab499c08b634990b4c9266bb5ac6b64734 (diff) |
Reduce the amount of data deployment endpoint returns
Diffstat (limited to 'app/serializers/deployment_entity.rb')
-rw-r--r-- | app/serializers/deployment_entity.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/serializers/deployment_entity.rb b/app/serializers/deployment_entity.rb index d9ade5d87e2..a8d6d80faad 100644 --- a/app/serializers/deployment_entity.rb +++ b/app/serializers/deployment_entity.rb @@ -9,20 +9,9 @@ class DeploymentEntity < Grape::Entity expose :name do |deployment| deployment.ref end - - expose :ref_path do |deployment| - namespace_project_tree_path( - deployment.project.namespace, - deployment.project, - id: deployment.ref) - end end expose :created_at expose :tag expose :last? - expose :user, using: UserEntity - expose :commit, using: CommitEntity - expose :deployable, using: BuildEntity - expose :manual_actions, using: BuildEntity end |