Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-11 18:05:06 +0300
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 18:36:42 +0300
commitc4dc0f52c3fbb0b195a23645ebdc78991abb332d (patch)
treeb11dfb4018feb382d4b56d7b6e44eac9b321ccc0 /lib/api/projects.rb
parentf0c437ca7d5ece265b134d8323f4f01b656f1a90 (diff)
adds test to check json fields on simple request and changes the url request format
Diffstat (limited to 'lib/api/projects.rb')
-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