Added success param to the response

This commit is contained in:
Saurabh Bhatia 2014-02-18 18:34:52 +08:00
parent 58b8641414
commit f1de9c4b8a
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@ module Api
respond_to :json
def create
respond_with Client.create(client_params)
@client = Client.create(client_params)
respond_with(@client, :success => true)
end
private
# Never trust parameters from the scary internet, only allow the white list through.