Module: Mongoid::NestedAttributes

Extended by:
ActiveSupport::Concern
Included in:
Components
Defined in:
lib/mongoid/nested_attributes.rb

Overview

Mongoid’s implementation of Rails’ nested attributes.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#nested_attributesArray<String>

Note:

Refactored from using delegate for class load performance.

Get the nested attributes.

Examples:

Get the nested attributes.

model.nested_attributes

Returns:



21
22
23
# File 'lib/mongoid/nested_attributes.rb', line 21

def nested_attributes
  self.class.nested_attributes
end