module Mongoid::Relations::Macros
This module contains the core macros for defining relations between documents. They can be either embedded or referenced (relational).
Public Instance Methods
associations()
click to toggle source
This is convenience for librarys still on the old API.
@example Get the associations.
person.associations
@return [ Hash ] The relations.
@since 2.3.1
# File lib/mongoid/relations/macros.rb, line 27 def associations self.relations end