diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-13 13:07:32 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-13 13:07:32 +0100 |
commit | 1f546e4d724d77db0a384fb36e17243bf75381f5 (patch) | |
tree | 9851f4f5b73d72a4747c2d5ea0602441b3aadd56 /app/serializers/commit_entity.rb | |
parent | 4b43126d08972c201551fbd1fe42e85847d5e03f (diff) | |
download | gitlab-ce-1f546e4d724d77db0a384fb36e17243bf75381f5.tar.gz |
Update commit entity to point to valid commit page
Diffstat (limited to 'app/serializers/commit_entity.rb')
-rw-r--r-- | app/serializers/commit_entity.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/serializers/commit_entity.rb b/app/serializers/commit_entity.rb index 49f4db36295..31763955f97 100644 --- a/app/serializers/commit_entity.rb +++ b/app/serializers/commit_entity.rb @@ -8,16 +8,16 @@ class CommitEntity < API::Entities::RepoCommit end expose :commit_url do |commit| - namespace_project_tree_url( + namespace_project_commit_url( request.project.namespace, request.project, - id: commit.id) + commit) end expose :commit_path do |commit| - namespace_project_tree_path( + namespace_project_commit_path( request.project.namespace, request.project, - id: commit.id) + commit) end end |