Make Hash.mongoize return a new Hash rather than modifying its argument

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 5.0.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This bug was causing confusing behavior that would prevent mongoid setter methods from being able to accept frozen Hashes:

      some_mongoid_model.my_attr =

      {a: 1}

      .freeze

      1. kablammo! "Can't modify frozen Hash"

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            misfo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: