lib/rhosync/api/push_objects.rb in rhosync-2.0.3 vs lib/rhosync/api/push_objects.rb in rhosync-2.0.4
- old
+ new
@@ -1,5 +1,5 @@
-Rhosync::Server.api :push_objects do |params,user|
+Server.api :push_objects do |params,user|
source = Source.load(params[:source_id],{:app_id=>APP_NAME,:user_id=>params[:user_id]})
source_sync = SourceSync.new(source)
source_sync.push_objects(params[:objects])
'done'
end
\ No newline at end of file