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

Change Relation Macros

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None

      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

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

              Created:
              Updated:
              Resolved: