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

Document restrict_with_error dependent option

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 7.2.0.rc1
    • Associations, Docs

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: