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

Custom field option example uses an option that is defined by Mongoid

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 8.1.0
    • Affects Version/s: None
    • Component/s: Docs
    • None

      The custom field option example in https://www.mongodb.com/docs/mongoid/master/reference/fields/#custom-field-options defines an option called :required. This option already exists in Mongoid.

      The documentation should either state that this option is already implemented by Mongoid so that users don't try to copy the code as is into their applications, or come up with a different example.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: