Improved clode layout.
This commit is contained in:
parent
771a56f618
commit
c848ddbc31
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ class SearchController < ApplicationController
|
||||||
items = SearchIndexBackend.search(query, limit, objects_with_direct_search_index)
|
items = SearchIndexBackend.search(query, limit, objects_with_direct_search_index)
|
||||||
items.each { |item|
|
items.each { |item|
|
||||||
require item[:type].to_filename
|
require item[:type].to_filename
|
||||||
record = Kernel.const_get( item[:type] ).find( item[:id] )
|
record = Kernel.const_get(item[:type]).lookup(id: item[:id])
|
||||||
assets = record.assets(assets)
|
assets = record.assets(assets)
|
||||||
result.push item
|
result.push item
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue