case sensitive where it should not be

This commit is contained in:
Sam 2013-06-17 15:47:18 +10:00
parent 8c7519df86
commit 80c03b7b1e
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Admin::UsersController < Admin::AdminController
@users = @users.where('moderator = ?', true) if params[:query] == 'moderators'
@users = @users.blocked if params[:query] == 'blocked'
@users = @users.where('approved = false') if params[:query] == 'pending'
@users = @users.where('username_lower like :filter or email like :filter', filter: "%#{params[:filter]}%") if params[:filter].present?
@users = @users.where('username_lower like :filter or email like :filter', filter: "%#{params[:filter].downcase}%") if params[:filter].present?
@users = @users.take(100)
render_serialized(@users, AdminUserSerializer)
end