Module: Mongoid::Relations::ClassMethods

Defined in:
lib/mongoid/relations.rb

Overview

:nodoc:

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



139
140
141
# File 'lib/mongoid/relations.rb', line 139

def associations
  self.relations
end