Module: ActiveRecord::NestedAttributes

Extended by:
ActiveSupport::Concern
Defined in:
activerecord/lib/active_record/nested_attributes.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods Classes: TooManyRecords

Constant Summary

UNASSIGNABLE_KEYS =

Attribute hash keys that should not be assigned as normal attributes. These hash keys are nested attributes implementation details.

%w( id

Instance Method Summary (collapse)

Methods included from ActiveSupport::Concern

append_features, extended, included

Instance Method Details

- (Object) _destroy

Returns ActiveRecord::AutosaveAssociation::marked_for_destruction? It's used in conjunction with fields_for to build a form element for the destruction of this association.

See ActionView::Helpers::FormHelper::fields_for for more info.



269
270
271
# File 'activerecord/lib/active_record/nested_attributes.rb', line 269

def _destroy
  marked_for_destruction?
end