lib/sugarcrm/connection/api/set_document_revision.rb in sugarcrm-0.9.10 vs lib/sugarcrm/connection/api/set_document_revision.rb in sugarcrm-0.9.11

- old
+ new

@@ -2,10 +2,10 @@ # Sets a new revision for a document. def set_document_revision(id, revision) login! unless logged_in? json = <<-EOF { - "session": "#{@session}", + "session": "#{@session.id}", "document_revision": "#{revision}", "id": #{id} } EOF json.gsub!(/^\s{6}/,'') \ No newline at end of file