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/commit_entity.rb | |
parent | 73a5f331b2e7b2e224147e69c857c6306318399e (diff) |
Do not use absolute URLS in entities use relative
Diffstat (limited to 'app/serializers/commit_entity.rb')
-rw-r--r-- | app/serializers/commit_entity.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/commit_entity.rb b/app/serializers/commit_entity.rb index f7eba6fc1e3..bc92a1c8545 100644 --- a/app/serializers/commit_entity.rb +++ b/app/serializers/commit_entity.rb @@ -3,8 +3,8 @@ class CommitEntity < API::Entities::RepoCommit expose :author, using: UserEntity - expose :commit_url do |commit| - namespace_project_tree_url( + expose :commit_path do |commit| + namespace_project_tree_path( request.project.namespace, request.project, id: commit.id) |