summaryrefslogtreecommitdiff
path: root/app/serializers/commit_entity.rb
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2016-11-21 07:17:15 -0600
committerRegis <boudinot.regis@yahoo.com>2016-11-21 07:17:15 -0600
commitc8788fff688b834dcd59f38167bd7e96b6196d27 (patch)
tree558b82fac13b774f3e462056b6cf01fdf9446092 /app/serializers/commit_entity.rb
parentff4edf37f3d8e7742292db6d5e50ba6f599950ff (diff)
parent671c6d7d577d6b872bee7634c4eaf6b4da16919f (diff)
downloadgitlab-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.rb7
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