Show only undeleted users in user select input fields (PR #486)
This commit is contained in:
parent
8798b886db
commit
329ac66cf1
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class UsersController < ApplicationController
|
|||
|
||||
# Currently used to display users nick and ids for autocomplete
|
||||
def index
|
||||
@users = User.natural_search(params[:q])
|
||||
@users = User.undeleted.natural_search(params[:q])
|
||||
respond_to do |format|
|
||||
format.json { render :json => @users.map(&:token_attributes) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue