method
replace
rails latest stable - Class:
ActiveRecord::Associations::AssociationCollection
replace(other_array)public
Replace this collection with other_array This will perform a diff and delete/add only records that have changed.
replace(other_array)Replace this collection with other_array This will perform a diff and delete/add only records that have changed.