From 5fdb51240f2093342b0ff0930b8d3798446e0026 Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Wed, 31 May 2017 22:10:00 +0200 Subject: Rename build to job --- app/serializers/build_artifact_entity.rb | 8 ++++---- app/serializers/build_details_entity.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'app/serializers') diff --git a/app/serializers/build_artifact_entity.rb b/app/serializers/build_artifact_entity.rb index 091bc8d6742..cb55c98f7c6 100644 --- a/app/serializers/build_artifact_entity.rb +++ b/app/serializers/build_artifact_entity.rb @@ -10,16 +10,16 @@ class BuildArtifactEntity < Grape::Entity expose :path do |job| download_namespace_project_job_artifacts_path( - build.project.namespace, - build.project, - build) + project.namespace, + project, + job) end expose :keep_path, if: -> (*) { job.has_expiring_artifacts? } do |job| keep_namespace_project_job_artifacts_path( project.namespace, project, - build) + job) end expose :browse_path do |job| diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb index 2d76ce203b9..03c7f238eca 100644 --- a/app/serializers/build_details_entity.rb +++ b/app/serializers/build_details_entity.rb @@ -4,7 +4,7 @@ class BuildDetailsEntity < BuildEntity expose :erased_by, if: -> (*) { build.erased? }, using: UserEntity expose :erase_path, if: -> (*) { build.erasable? && can?(current_user, :update_build, project) } do |build| - erase_namespace_project_build_path(project.namespace, project, build) + erase_namespace_project_job_path(project.namespace, project, build) end expose :artifacts, using: BuildArtifactEntity -- cgit v1.2.1