Improved clode layout.
This commit is contained in:
parent
7ae3fbbc11
commit
771a56f618
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue