Skip to content
代码片段 群组 项目
未验证 提交 f8eedb4c 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

Cleaner variable name

上级 80036470
No related branches found
No related tags found
无相关合并请求
...@@ -21,12 +21,14 @@ def map_public_to_visibility_level(attrs) ...@@ -21,12 +21,14 @@ def map_public_to_visibility_level(attrs)
# Example Request: # Example Request:
# GET /projects # GET /projects
get do get do
@query = current_user.authorized_projects @projects = current_user.authorized_projects
# If the archived parameter is passed, limit results accordingly # If the archived parameter is passed, limit results accordingly
if params[:archived].present? if params[:archived].present?
@query = @query.where(archived: parse_boolean(params[:archived])) @projects = @projects.where(archived: parse_boolean(params[:archived]))
end end
@projects = paginate @query
@projects = paginate @projects
present @projects, with: Entities::Project present @projects, with: Entities::Project
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册