fix topic autocomplete controller action

This commit is contained in:
Devin Howard 2016-10-19 22:10:38 +08:00
parent f75d5253b3
commit 7f1c04015e

View file

@ -22,7 +22,7 @@ class TopicsController < ApplicationController
end
@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
# GET topics/:id