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

Document restrict_with_error dependent option

      https://docs.mongodb.com/mongoid/master/tutorials/mongoid-relations/#dependent-behavior lists a number of possible dependent options, but it does not list restrict_with_error which Mongoid also provides.

      It appears that the values that are documented like `restrict` are not valid, therefore this ticket is to:

      Compile the list of `dependent` values from code
      Update documentation to reflect the actual values
      Verify each value applies to each of the two association types (has_one/has_many) and note exceptions in documentation. For example, it appears that :delete_all may be inapplicable to has_one

            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: