Fix "Cannot infer root key from collection type." in UserController
This commit is contained in:
parent
1773018191
commit
d4ab0a055f
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class UsersController < ApplicationController
|
|||
def index
|
||||
@users = User.undeleted.natural_search(params[:q])
|
||||
respond_to do |format|
|
||||
format.json { render :json => @users.map(&:token_attributes) }
|
||||
format.json { render :json => @users.map(&:token_attributes).to_json }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue