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

Docs: Correctly use Mongoid::Association::Relatable instead of Mongoid::Association

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 9.0.0
    • Affects Version/s: None
    • Component/s: Docs
    • None

      Mongoid::Association is poorly named. It is actually a mixin included in the Mongoid::Document class, which makes a document capable of being associated. (Mongoid::Associable would be a far better name, as the general practice is for mixins to end in -able suffix.)

      The association metadata classes like HasOneEmbedsMany, etc. do not inherit from Mongoid::Association. Instead, these include Mongoid::Association::Relatable mixin as their common base.

      Therefore, where docs currently reference type Association (i.e. metadata) it is incorrect, we should replace it with Mongoid::Association::Relatable.

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: