diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-24 22:34:36 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-24 22:34:36 +0200 |
commit | 33f7c40f3f7d2b342dcaa839b7cd56599a573c65 (patch) | |
tree | 96bcf4f5018b5f5c91b082767129fe503c8a7ac3 /app/serializers/deployment_serializer.rb | |
parent | e057ad975c6ced8c9565fc8329db16b1ababcef8 (diff) | |
download | gitlab-ce-33f7c40f3f7d2b342dcaa839b7cd56599a573c65.tar.gz |
use represent_concise instead of separate entity
Diffstat (limited to 'app/serializers/deployment_serializer.rb')
-rw-r--r-- | app/serializers/deployment_serializer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/serializers/deployment_serializer.rb b/app/serializers/deployment_serializer.rb index 4b4bf6cd526..cba5c3f311f 100644 --- a/app/serializers/deployment_serializer.rb +++ b/app/serializers/deployment_serializer.rb @@ -1,3 +1,8 @@ class DeploymentSerializer < BaseSerializer entity DeploymentEntity + + def represent_concise(resource, opts = {}) + opts[:only] = [:iid, :id, :sha, :created_at, :tag, :last?, :id, ref: [:name]] + represent(resource, opts) + end end |