summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-11 16:05:06 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 16:36:42 +0100
commitc4dc0f52c3fbb0b195a23645ebdc78991abb332d (patch)
treeb11dfb4018feb382d4b56d7b6e44eac9b321ccc0 /lib/api
parentf0c437ca7d5ece265b134d8323f4f01b656f1a90 (diff)
downloadgitlab-ce-c4dc0f52c3fbb0b195a23645ebdc78991abb332d.tar.gz
adds test to check json fields on simple request and changes the url request format
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index c46764c4897..7aea553bdca 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -25,7 +25,7 @@ module API
@projects = current_user.authorized_projects
@projects = filter_projects(@projects)
@projects = paginate @projects
- if params["format"]
+ if params["simple"]
present @projects, with: Entities::BasicProjectWithAccess, user: current_user
else
present @projects, with: Entities::ProjectWithAccess, user: current_user