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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 9.0.0
    • Affects Version/s: None
    • Component/s: Docs
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: