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

Undefined method clear when destroy an instance

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.2
    • Affects Version/s: 5.0.1, 5.0.0
    • Component/s: None
    • Labels:
      None

      Undefined method `clear` when destroy an instance whose model contains

      "has_one :XXX, dependent: delete, autobuild: true"

      but

      has_one with dependent: destroy works.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            chobitscxd@gmail.com Junhui Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: