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

Can't update deleted object #paranoia

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            edbond Eduard Bondarenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None