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



141
142
143
# File 'lib/mongoid/relations.rb', line 141

def associations
  self.relations
end