From d89527839ea0dd1734dacb71c3ed2a97f1ff74d7 Mon Sep 17 00:00:00 2001 From: skv Date: Sat, 14 Dec 2013 17:43:48 +0400 Subject: fix most of warnings --- lib/api/namespaces.rb | 2 +- lib/api/users.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/api/namespaces.rb b/lib/api/namespaces.rb index 3a9ab66957e..f9f2ed90ccc 100644 --- a/lib/api/namespaces.rb +++ b/lib/api/namespaces.rb @@ -12,7 +12,7 @@ module API # Example Request: # GET /namespaces get do - @namespaces = Namespace.scoped + @namespaces = Namespace.all @namespaces = @namespaces.search(params[:search]) if params[:search].present? @namespaces = paginate @namespaces diff --git a/lib/api/users.rb b/lib/api/users.rb index 54d3aeecb70..475343a3edf 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -9,7 +9,7 @@ module API # Example Request: # GET /users get do - @users = User.scoped + @users = User.all @users = @users.active if params[:active].present? @users = @users.search(params[:search]) if params[:search].present? @users = paginate @users -- cgit v1.2.1