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

Change Relation Macros

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None

      Description

      Change the relation macros for referenced associations for better compatibility with gems geared towards Active Record.

      :referenced_in => :belongs_to
      :references_many => :has_many
      :references_one => :has_one
      :references_and_referenced_in_many => :has_and_belongs_to_many
      

      Also remove all the previous aliases for a consistent API.

      This is backwards breaking, marked for 3.x

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            durran Durran Jordan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: