Sha256: c4a0a60feec1de4bd6792eeeecded0eb164304eb47d7f0bde987440ad27b4ebe
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
Server.api :push_deletes, :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) source_sync.push_deletes(params[:objects]) 'done' end
Version data entries
3 entries across 3 versions & 1 rubygems