Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1804

Can't update deleted object #paranoia

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.4.7
    • Component/s: None
    • Labels:
      None

      Description

      Deleted objects in paranoid collection can't be updated.

      key = ApiKey.deleted.first
      key.update_attributes! description: "new description" # => true
      key.reload
      key.description # old description

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: