mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Use consistent new-style hashes in render calls *twitch*
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user