2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

Use consistent new-style hashes in render calls *twitch*

This commit is contained in:
Sarah Vessels 2013-03-22 14:08:11 -04:00
parent 3d4fb43c73
commit 54c7b1ab63
9 changed files with 27 additions and 27 deletions

View file

@ -4,17 +4,17 @@ class DraftController < ApplicationController
def show
seq = params[:sequence] || DraftSequence.current(current_user, params[:draft_key])
render :json => {draft: Draft.get(current_user, params[:draft_key], seq), draft_sequence: seq}
render json: {draft: Draft.get(current_user, params[:draft_key], seq), draft_sequence: seq}
end
def update
Draft.set(current_user, params[:draft_key], params[:sequence].to_i, params[:data])
render :text => 'ok'
render text: 'ok'
end
def destroy
Draft.clear(current_user, params[:draft_key], params[:sequence].to_i)
render :text => 'ok'
render text: 'ok'
end
end