Merge branch 'master' of github.com:discourse/discourse

This commit is contained in:
Neil Lalonde
2013-09-11 10:20:27 -04:00
20 changed files with 77 additions and 57 deletions

View File

@ -9,12 +9,12 @@ class DraftController < ApplicationController
def update
Draft.set(current_user, params[:draft_key], params[:sequence].to_i, params[:data])
render text: 'ok'
render json: success_json
end
def destroy
Draft.clear(current_user, params[:draft_key], params[:sequence].to_i)
render text: 'ok'
render json: success_json
end
end

View File

@ -329,8 +329,6 @@ class TopicsController < ApplicationController
end
end
private
def move_posts_to_destination(topic)
args = {}
args[:title] = params[:title] if params[:title].present?