Sha256: da653ea48b7b334139f9de42ba5cbeaeaca4862e73a374df6ff20efa85a3faa1
Contents?: true
Size: 525 Bytes
Versions: 7
Compression:
Stored size: 525 Bytes
Contents
Server.api :fast_delete, :source do |params,user| source = Source.load(params[:source_id],{:app_id=>APP_NAME,:user_id=>params[:user_id]}) # if source does not exist create one for dynamic adapter source = Source.create({:name => params[:source_id]},{:app_id => APP_NAME,:user_id=>params[:user_id]}) unless source source_sync = SourceSync.new(source) timeout = params[:timeout] || 10 raise_on_expire = params[:raise_on_expire] || false source_sync.fast_delete(params[:data], timeout,raise_on_expire) 'done' end
Version data entries
7 entries across 7 versions & 1 rubygems