case sensitive where it should not be
This commit is contained in:
parent
8c7519df86
commit
80c03b7b1e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue