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