Module: Mongoid::Relations::ClassMethods

Defined in:
lib/mongoid/relations.rb

Instance Method Summary collapse

Instance Method Details

#associationsHash

This is convenience for librarys still on the old API.

Examples:

Get the associations.

Person.associations

Returns:

  • (Hash)

    The relations.

Since:

  • 2.3.1



155
156
157
# File 'lib/mongoid/relations.rb', line 155

def associations
  self.relations
end