auto replace rules in titles

This commit is contained in:
Régis Hanol
2013-04-10 11:00:50 +02:00
parent 33e3ad1603
commit c5cf8be864
14 changed files with 280 additions and 91 deletions

View File

@ -56,7 +56,9 @@ class TopicsController < ApplicationController
topic.change_category(params[:category])
end
render nothing: true
# this is used to return the title to the client as it may have been
# changed by "TextCleaner"
render_serialized(topic, BasicTopicSerializer)
end
def similar_to