method

associated_records_to_validate_or_save

rails latest stable - Class: ActiveRecord::AutosaveAssociation
associated_records_to_validate_or_save(association, new_record, autosave)
private

Returns the record for an association collection that should be validated or saved. If autosave is false only new records will be returned, unless the parent is/was a new record itself.