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

Overly paranoid Mongoid.destructive_fields

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:

      Description

      The way #destructive_fields is written, you can't create fields on your documents with names like 'p' and 'y' because those conflict with Kernel#p and Kernel#y (from YAML), respectively. Could we tone down the strictness on this a bit so I can have my y field work again? Perhaps destructive_fields can exclude private Object methods?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: