changes string to symbol in param

This commit is contained in:
tiagonbotelho 2016-07-12 10:43:08 +01:00
parent a4678edde4
commit be3409ab7a
1 changed files with 1 additions and 1 deletions

View File

@ -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