diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-20 23:21:17 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-28 13:58:34 +0200 |
commit | afcc57abfdcb11001803655f938187cbdc96b67c (patch) | |
tree | eccf64ae3636c0e7c2d7ea292e97ee51943d5adf /app/serializers | |
parent | 4c3482345a3bcc9ac5d29f5dbc55c966ca5a0c72 (diff) | |
download | gitlab-ce-afcc57abfdcb11001803655f938187cbdc96b67c.tar.gz |
Rename metadata relation and methods
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/build_details_entity.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb index ca4480fe2b1..99ca0bd158b 100644 --- a/app/serializers/build_details_entity.rb +++ b/app/serializers/build_details_entity.rb @@ -5,7 +5,9 @@ class BuildDetailsEntity < JobEntity expose :runner, using: RunnerEntity expose :pipeline, using: PipelineEntity - expose :metadata, using: BuildMetadataEntity + expose :metadata, using: BuildMetadataEntity do |build| + build.ensure_metadata + end expose :erased_by, if: -> (*) { build.erased? }, using: UserEntity expose :erase_path, if: -> (*) { build.erasable? && can?(current_user, :erase_build, build) } do |build| |