Sha256: 4842e3f33c09799f19f1f26bbac879b2538f2f9abfb80d41f383bd17f6021945
Contents?: true
Size: 480 Bytes
Versions: 14
Compression:
Stored size: 480 Bytes
Contents
Server.api :clientregister, :application, :post do |params,user,server| server.catch_all do current_client = server.current_client if current_client.nil? and server.current_user and server.current_app fields = {:user_id => server.current_user.id} fields[:id] = params[:client_id].to_s fields[:app_id] = server.current_app.id current_client = Client.create(fields) end current_client.update_fields(params) server.status 200 end end
Version data entries
14 entries across 14 versions & 1 rubygems