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

Bugfix: options arg in #destroy! is ignored

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The #destroy! (bang) method takes options = {} as an arg, but does not pass them to #destroy (non-bang). This looks unintentional.

      The PR adds spec coverage for #delete#destroy, and #destroy! :persist and :suppress options.

      PR raised here: https://github.com/mongodb/mongoid/pull/5552

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: