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

Polymorphic Referential Associations

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Mongoid should allow you to declare polymorphic associations, like:

      Movie.references_many :ratings, :as => :ratable
      Rating.referenced_in :ratable, :polymorphic => true

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernerdschaefer Bernerd Schaefer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: