Module: ActiveRecord::NestedAttributes
- Defined in:
- lib/active_record/nested_attributes.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#_delete ⇒ Object
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.
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/active_record/nested_attributes.rb', line 3 def self.included(base) base.extend(ClassMethods) base.class_inheritable_accessor :reject_new_nested_attributes_procs, :instance_writer => false base.reject_new_nested_attributes_procs = {} end |
Instance Method Details
#_delete ⇒ Object
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.
226 227 228 |
# File 'lib/active_record/nested_attributes.rb', line 226 def _delete marked_for_destruction? end |