gitlab-org--gitlab-foss/app/serializers/build_artifact_entity.rb
Lin Jen-Shin 71777a4a18 Rename BuildsController to JobsController
Rename other URL generators

admin_builds_path -> admin_jobs_path

Fix tests and more renaming

Fix more tests

Also change build_id to job_id in the controller
2017-05-17 20:17:30 +08:00

14 lines
272 B
Ruby

class BuildArtifactEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
build.name
end
expose :path do |build|
download_namespace_project_job_artifacts_path(
build.project.namespace,
build.project,
build)
end
end