Sha256: 42db6f147caa8a1dbb40bad454fa5ee939b68438d4c592666b0edcb52447b637

Contents?: true

Size: 379 Bytes

Versions: 17

Compression:

Stored size: 379 Bytes

Contents

module SugarCRM; class Connection
  # Sets a new revision for a document.
  def set_document_revision(id, revision)
    login! unless logged_in?
    json = <<-EOF
      {
        \"session\": \"#{@session}\"\,
        \"document_revision\": \"#{revision}\"\,
        \"id\": #{id}
      }
    EOF
    json.gsub!(/^\s{6}/,'')
    send!(:set_document_revision, json)
  end
end; end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sugarcrm-0.9.9 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.8 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.7 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.6 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.5 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.4 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.3 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.2 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.1 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.9.0 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.8.2 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.8.1 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.8.0 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.7.9 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.7.8 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.7.7 lib/sugarcrm/connection/api/set_document_revision.rb
sugarcrm-0.7.2 lib/sugarcrm/connection/api/set_document_revision.rb