return API key when creating a channel via API

This commit is contained in:
Lee Lawlor
2014-03-31 14:16:20 -04:00
parent 6d48aaa8fc
commit 6e5883bb80
4 changed files with 28 additions and 4 deletions

View File

@ -206,8 +206,8 @@ class ChannelsController < ApplicationController
channel.add_write_api_key
@channel_id = channel.id
respond_to do |format|
format.json { render :json => channel.to_json(Channel.public_options) }
format.xml { render :xml => channel.to_xml(Channel.public_options) }
format.json { render :json => channel.to_json(Channel.private_options) }
format.xml { render :xml => channel.to_xml(Channel.private_options) }
format.any { redirect_to channel_path(@channel_id, :anchor => "channelsettings") }
end
end