From f8eedb4cdac6423a038c80d39d70ad1db17d3da5 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Mon, 11 Aug 2014 15:25:25 +0300
Subject: [PATCH] Cleaner variable name

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
---
 lib/api/projects.rb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 4c0766482f3..149678e6803 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -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
 
-- 
2.30.9