another issue from the maps in maps branch
This commit is contained in:
parent
a56c4eb110
commit
e72ae5df94
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class TopicsController < ApplicationController
|
|||
@topics = []
|
||||
@maps = []
|
||||
end
|
||||
@all= @topics.concat(@maps).sort { |a, b| a.name <=> b.name }
|
||||
@all= @topics.to_a.concat(@maps.to_a).sort { |a, b| a.name <=> b.name }
|
||||
|
||||
render json: autocomplete_array_json(@all)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue