diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-12 10:43:08 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-12 10:43:08 +0100 |
commit | 3ee328dcc3203aeaa2cdf619ac95d7dac07a84eb (patch) | |
tree | 48cac2cb1e418d1f6b0300936b05625e61a023ff | |
parent | a5cf953deda76398715abe2654530d0dea9f6a3a (diff) | |
download | gitlab-ce-3ee328dcc3203aeaa2cdf619ac95d7dac07a84eb.tar.gz |
changes string to symbol in param
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 7aea553bdca..844547665ef 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["simple"] + if params[:simple] present @projects, with: Entities::BasicProjectWithAccess, user: current_user else present @projects, with: Entities::ProjectWithAccess, user: current_user |