beautify map invocations of users

This commit is contained in:
wvengen 2013-10-29 18:46:55 +01:00
parent 1870276cd2
commit e968919cce
4 changed files with 4 additions and 4 deletions

View file

@ -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