fix topic autocomplete controller action
This commit is contained in:
parent
f75d5253b3
commit
7f1c04015e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class TopicsController < ApplicationController
|
||||||
end
|
end
|
||||||
@all= @topics.to_a.concat(@maps.to_a).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)
|
render json: autocomplete_array_json(@all).to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET topics/:id
|
# GET topics/:id
|
||||||
|
|
Loading…
Reference in a new issue