Sha256: 65ceb24de168f18409f924a324255fb1591ec465c0e8929ba11c040401c5d243

Contents?: true

Size: 202 Bytes

Versions: 18

Compression:

Stored size: 202 Bytes

Contents

Rhosync::Server.api :delete_client do |params,user|
  Client.load(params[:client_id],{:source_name => '*'}).delete
  User.load(params[:user_id]).clients.delete(params[:client_id])
  "Client deleted"
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rhosync-2.0.3 lib/rhosync/api/delete_client.rb
rhosync-2.0.2 lib/rhosync/api/delete_client.rb
rhosync-2.0.1 lib/rhosync/api/delete_client.rb
rhosync-2.0.0 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.rc2 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.rc1 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta13 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta12 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta11 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta10 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta9 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta8 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta7 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta6 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta4 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta3 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta2 lib/rhosync/api/delete_client.rb
rhosync-2.0.0.beta1 lib/rhosync/api/delete_client.rb