diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-17 17:58:28 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-17 17:58:28 +0300 |
commit | 5ee58c1c0699530612dcd2abcb2a07f041f0fca9 (patch) | |
tree | 5e7c14faee2bcbc95d9fbb746fc1193382837c85 /app/serializers/container_tag_entity.rb | |
parent | 57d331d7514f36d5805a68ac7523d6a075d3e7a7 (diff) |
Add short_revision and use total_size
Diffstat (limited to 'app/serializers/container_tag_entity.rb')
-rw-r--r-- | app/serializers/container_tag_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/container_tag_entity.rb b/app/serializers/container_tag_entity.rb index ec1fc349586..26a68c43807 100644 --- a/app/serializers/container_tag_entity.rb +++ b/app/serializers/container_tag_entity.rb @@ -1,7 +1,7 @@ class ContainerTagEntity < Grape::Entity include RequestAwareEntity - expose :name, :location, :revision, :total_size, :created_at + expose :name, :location, :revision, :short_revision, :total_size, :created_at expose :destroy_path, if: -> (*) { can_destroy? } do |tag| project_registry_repository_tag_path(project, tag.repository, tag.name, format: :json) |