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


157
158
159
# File 'lib/mongoid/relations.rb', line 157

def associations
  self.relations
end