Improved clode layout.

This commit is contained in:
Martin Edenhofer 2016-01-15 20:08:17 +01:00
parent 7ae3fbbc11
commit 771a56f618

View file

@ -58,10 +58,10 @@ returns
# try search index backend # try search index backend
if SearchIndexBackend.enabled? if SearchIndexBackend.enabled?
items = SearchIndexBackend.search( query, limit, 'User' ) items = SearchIndexBackend.search(query, limit, 'User')
users = [] users = []
items.each { |item| items.each { |item|
users.push User.lookup( id: item[:id] ) users.push User.lookup(id: item[:id])
} }
return users return users
end end