Commit f8eedb4c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Cleaner variable name

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 80036470
......@@ -21,12 +21,14 @@ module API
# Example Request:
# GET /projects
get do
@query = current_user.authorized_projects
@projects = current_user.authorized_projects
# If the archived parameter is passed, limit results accordingly
if params[:archived].present?
@query = @query.where(archived: parse_boolean(params[:archived]))
@projects = @projects.where(archived: parse_boolean(params[:archived]))
end
@projects = paginate @query
@projects = paginate @projects
present @projects, with: Entities::Project
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment