diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-17 18:08:05 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-17 18:10:12 +0300 |
commit | 54ee0df78a3e025ff2c1250d20e8518c9753ff34 (patch) | |
tree | e8074652f06714c24241676db63e21a6af640327 /app/serializers/deployment_entity.rb | |
parent | 73a5f331b2e7b2e224147e69c857c6306318399e (diff) |
Do not use absolute URLS in entities use relative
Diffstat (limited to 'app/serializers/deployment_entity.rb')
-rw-r--r-- | app/serializers/deployment_entity.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/deployment_entity.rb b/app/serializers/deployment_entity.rb index ad6fc8d665b..d610fbe0c8a 100644 --- a/app/serializers/deployment_entity.rb +++ b/app/serializers/deployment_entity.rb @@ -10,8 +10,8 @@ class DeploymentEntity < Grape::Entity deployment.ref end - expose :ref_url do |deployment| - namespace_project_tree_url( + expose :ref_path do |deployment| + namespace_project_tree_path( deployment.project.namespace, deployment.project, id: deployment.ref) |