method
assign_to_or_mark_for_destruction
rails latest stable - Class:
ActiveRecord::NestedAttributes
assign_to_or_mark_for_destruction(record, attributes, allow_destroy)private
Updates a record with the attributes or marks it for destruction if allow_destroy is true and has_destroy_flag? returns true.