Skip to content
Snippets Groups Projects
Verified Commit f8eedb4c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Cleaner variable name

parent 80036470
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment