We serve to please the Hound

This commit is contained in:
Luka Murn 2017-01-10 10:42:52 +01:00
parent 0ee5b98977
commit 5873eea994

View file

@ -12,7 +12,9 @@ class AtWhoController < ApplicationController
# Add avatars, Base62, convert to JSON
res.each do |user_obj|
user_obj['full_name'] = user_obj['full_name'].truncate(Constants::NAME_TRUNCATION_LENGTH_DROPDOWN)
user_obj['full_name'] =
user_obj['full_name']
.truncate(Constants::NAME_TRUNCATION_LENGTH_DROPDOWN)
user_obj['id'] = user_obj['id'].base62_encode
user_obj['img_url'] = avatar_path(user_obj['id'], :icon_small)
end