drafts were saving but client was failing to parse

This commit is contained in:
Sam 2013-09-11 16:18:46 +10:00
parent efb15af209
commit e26b3662ee
1 changed files with 2 additions and 2 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