summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-28 17:06:19 +0100
committerPhil Hughes <me@iamphill.com>2017-04-28 17:06:19 +0100
commite11a702afceee7f5edeb8c93a4192fa05209b091 (patch)
treeecb9cea80803638c9b8878b091793beb3ed88720 /app/serializers
parent79e2a524e22e5474c5b33deb81ac6cc51512d2e5 (diff)
downloadgitlab-ce-e11a702afceee7f5edeb8c93a4192fa05209b091.tar.gz
Re-wrote to match our docs - still not 100% sure but closer than it was
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/project_entity.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/serializers/project_entity.rb b/app/serializers/project_entity.rb
index 6f8061f7530..a471a7e6a88 100644
--- a/app/serializers/project_entity.rb
+++ b/app/serializers/project_entity.rb
@@ -1,9 +1,11 @@
class ProjectEntity < Grape::Entity
+ include RequestAwareEntity
+
expose :id
expose :name
expose :full_path do |project|
- project.full_path
+ namespace_project_path(project.namespace, project)
end
expose :full_name do |project|