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

Atomic set operations on paranoid models do not persist the 'deleted_at' attribute

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

      To recreate, try:

      > model.set(:deleted_at, 30.days.ago)
      > model.deleted_at # displays the correct value
      > model.reload
      > model.deleted_at # has not been updated
      

      where

      Unable to find source-code formatter for language: model. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      
      

      is an object that implements Mongoid::Paranoia.

      I've confirmed this behaviour for several paranoid documents and the issue seems to be isolated to Mongoid version 3.0.

            Assignee:
            durran Durran Jordan
            Reporter:
            milestinsley Miles Tinsley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: