Added success param to the response
This commit is contained in:
parent
58b8641414
commit
f1de9c4b8a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue