Method: Mongoid::Relations::Metadata#options

Defined in:
lib/mongoid/relations/metadata.rb

#optionsMetadata

Returns the metadata itself. Here for compatibility with Rails association metadata.

Examples:

Get the options.

.options

Returns:

Since:

  • 2.4.6



847
848
849
# File 'lib/mongoid/relations/metadata.rb', line 847

def options
  self
end