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

.changed doesn't seem to work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 12_01_17
    • Affects Version/s: 6.0.0
    • Component/s: None
    • None
    • Environment:
      ruby 2.3, rails 5

      in a controller, if you update, with a _params permission method, changed is always empty:

      ex)

      if @case.update(case_params)
      debug @case.changes # always returns empty array

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            kevinchugh Kevin Chugh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: