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

Overly paranoid Mongoid.destructive_fields

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            nanodeath Max Aller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: