diff options
author | Regis <boudinot.regis@yahoo.com> | 2016-11-21 07:17:15 -0600 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2016-11-21 07:17:15 -0600 |
commit | c8788fff688b834dcd59f38167bd7e96b6196d27 (patch) | |
tree | 558b82fac13b774f3e462056b6cf01fdf9446092 /app/serializers/commit_entity.rb | |
parent | ff4edf37f3d8e7742292db6d5e50ba6f599950ff (diff) | |
parent | 671c6d7d577d6b872bee7634c4eaf6b4da16919f (diff) | |
download | gitlab-ce-c8788fff688b834dcd59f38167bd7e96b6196d27.tar.gz |
Merge branch 'master' into auto-pipelines-vue
Diffstat (limited to 'app/serializers/commit_entity.rb')
-rw-r--r-- | app/serializers/commit_entity.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/serializers/commit_entity.rb b/app/serializers/commit_entity.rb index 121ca76a16f..49f4db36295 100644 --- a/app/serializers/commit_entity.rb +++ b/app/serializers/commit_entity.rb @@ -13,4 +13,11 @@ class CommitEntity < API::Entities::RepoCommit request.project, id: commit.id) end + + expose :commit_path do |commit| + namespace_project_tree_path( + request.project.namespace, + request.project, + id: commit.id) + end end |