beautify map invocations of users
This commit is contained in:
parent
1870276cd2
commit
e968919cce
4 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ class UsersController < ApplicationController
|
|||
def index
|
||||
@users = User.natural_search(params[:q])
|
||||
respond_to do |format|
|
||||
format.json { render :json => @users.map { |u| u.token_attributes } }
|
||||
format.json { render :json => @users.map(&:token_attributes) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue