summaryrefslogtreecommitdiff
path: root/app/serializers/build_details_entity.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2019-05-21 00:56:19 +0200
committerMatija Čupić <matteeyah@gmail.com>2019-05-28 17:06:29 +0200
commitc86fa0e45e4a053090b5c17b9678120e39f696a6 (patch)
tree177623aae61915a5d23701ab8428c264261b0724 /app/serializers/build_details_entity.rb
parent9e6f37744a7f30a181879a1e2799e129c5e795c9 (diff)
downloadgitlab-ce-c86fa0e45e4a053090b5c17b9678120e39f696a6.tar.gz
Rename with_all_reports to with_reports
Diffstat (limited to 'app/serializers/build_details_entity.rb')
-rw-r--r--app/serializers/build_details_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb
index 601b2c47678..6be0a8d1499 100644
--- a/app/serializers/build_details_entity.rb
+++ b/app/serializers/build_details_entity.rb
@@ -43,7 +43,7 @@ class BuildDetailsEntity < JobEntity
end
expose :reports, if: -> (*) { can?(current_user, :read_build, build) }, using: JobArtifactReportEntity do |build|
- build.job_artifacts.merge(Ci::JobArtifact.with_all_reports)
+ build.job_artifacts.with_reports
end
expose :erased_by, if: -> (*) { build.erased? }, using: UserEntity