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

Add attribute_previously_was helpers

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MONGOID-5104 added *_previously_changed and *_previously_changed? helpers.

      Rails also supports a *_previously_was helper: https://www.bigbinary.com/blog/rails-6-1-adds-_previously_was-attribute-methods

      Please add this to Mongoid; I can't upgrade my app without it.

      On a side note, MONGOID-5104 is a big and dangerous change in my app. While I agree with the change, it would have been nice to have a global config toggle ("Use previously was") or even a model-level toggle that would facilitate upgrading.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None